【问题标题】:I'm attaching a policy to a role which creates lambda function. In that lambda I need to attach the existing VPC and upload files to S3我将策略附加到创建 lambda 函数的角色。在那个 lambda 中,我需要附加现有的 VPC 并将文件上传到 S3
【发布时间】:2022-06-10 19:19:15
【问题描述】:

这是我添加 S3 并从 lambda 上传文件的代码

resource "aws_s3_bucket_object" "object" {
bucket = "${var.s3_bucket}"
key    = "test"
acl    = "private"              # or can be "public-read"
source = "LAmbdas3test/welcome.zip/welcome.py"
etag   = filemd5("LAmbdas3test/welcome.zip/welcome.py")
}

【问题讨论】:

  • 好的,有什么错误吗?你已经尝试过什么?
  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: terraform


猜你喜欢
  • 2017-01-15
  • 1970-01-01
  • 2017-05-17
  • 1970-01-01
  • 2020-10-31
  • 1970-01-01
  • 1970-01-01
  • 2020-10-21
  • 1970-01-01
相关资源
最近更新 更多