我想创建一个存储桶,然后使用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.
我该如何解决这个问题?
答案 0 :(得分:-1)
不要在您的存储桶中创建文件夹:
resource "aws_s3_bucket" "bucket_create1" {
bucket = "test_bucket"
acl = "private"
}