签名不匹配:从terraform创建Amazon S3存储桶

时间:2016-05-31 18:10:42

标签: amazon-web-services amazon-s3 bucket terraform

我想创建一个存储桶,然后使用folder1作为文件夹(相当于从AWS控制台创建文件夹操作)。 我正在尝试使用以下terraform代码:

 resource "aws_s3_bucket" "bucket_create1" {
           bucket = "test_bucket/folder1/"
           acl = "private"

       }

我收到以下错误:

Error creating S3 bucket: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:-1)

不要在您的存储桶中创建文件夹:

resource "aws_s3_bucket" "bucket_create1" {
    bucket = "test_bucket"
    acl = "private"
}