从 Lambda 中访问 S3 中的 CloudFormation 模板
Access CloudFormation template in S3 from within Lambda
我想在我的 lambda 中使用 cfn_client.update_stack()
。在这里,我必须访问我的 S3 存储桶中的 CF 模板。附加到 lambda 的 IAM 角色是正确的。
我试过了:
TemplateURL='s3://xxx/yyy/temp.yaml',
但它没有用。该模板是私有的,所以我不能使用我假设的 Https://
url?
我如何访问模板,或者我是否被迫从我的 lambda 的 /tmp
和 运行 中的存储桶中下载模板 template-body
?
aws cloudformation update-stack 接受“https”。
(至少来自 AWS boto3 文档),
https://docs.aws.amazon.com/cli/latest/reference/cloudformation/update-stack.html#examples
我认为在你的情况下,你必须通过 https 授予对 lambda 的访问权限,或者只下载模板并使用 --template-body
我想在我的 lambda 中使用 cfn_client.update_stack()
。在这里,我必须访问我的 S3 存储桶中的 CF 模板。附加到 lambda 的 IAM 角色是正确的。
我试过了:
TemplateURL='s3://xxx/yyy/temp.yaml',
但它没有用。该模板是私有的,所以我不能使用我假设的 Https://
url?
我如何访问模板,或者我是否被迫从我的 lambda 的 /tmp
和 运行 中的存储桶中下载模板 template-body
?
aws cloudformation update-stack 接受“https”。 (至少来自 AWS boto3 文档), https://docs.aws.amazon.com/cli/latest/reference/cloudformation/update-stack.html#examples
我认为在你的情况下,你必须通过 https 授予对 lambda 的访问权限,或者只下载模板并使用 --template-body