0

我想创建一个存储桶,然后将文件夹 1 作为文件夹(相当于从 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.

我该如何解决这个问题?

4

1 回答 1

-1

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

resource "aws_s3_bucket" "bucket_create1" {
    bucket = "test_bucket"
    acl = "private"
}
于 2016-11-09T05:10:19.407 回答