【问题标题】:Signature does not match : Amazon S3 bucket creation from terraform签名不匹配:从 terraform 创建 Amazon S3 存储桶
【发布时间】:2016-09-29 21:14:38
【问题描述】:

我想创建一个存储桶,然后将文件夹 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.

我该如何解决这个问题?

【问题讨论】:

  • 您是否使用预签名 URL?如果是,请在上述问题中包含整个代码
  • 我没有使用预签名的 URL。
  • 这个错误与 S3 中预签名 URL 的使用有关

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


【解决方案1】:

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

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

【讨论】:

  • 请解释为什么请这个答案对未来的用户也有帮助
猜你喜欢
  • 2019-07-14
  • 1970-01-01
  • 2021-08-14
  • 1970-01-01
  • 2022-01-12
  • 2018-05-20
  • 2019-09-16
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多