use*_*193 3 amazon-s3 amazon-web-services aws-cloudformation
我正在尝试启动一个 CFN 模板化的嵌套堆栈。子堆栈与我尝试通过 CFN 控制台启动的父堆栈位于同一区域的存储桶中。
我有管理员访问权限并且能够通过单个 CFN 模板创建资源,但由于某种原因,当使用嵌套堆栈时,会返回以下错误:
The following resource(s) failed to create: [My-Sns-Stack]. . Rollback requested by user.
My-Sns-Stack CREATE_FAILED S3 error: Access Denied For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
Run Code Online (Sandbox Code Playgroud)
我检查了以下资源,但没有解决问题:
部署 cloudformation 模板时指定 S3 存储桶
https://www.reddit.com/r/aws/comments/bjk3qw/cloudformation_nested_stacks_s3_access/
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack.html
...
Resources:
SnsStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: !Ref SnsStackUrl
TimeoutInMinutes: 15
...
Run Code Online (Sandbox Code Playgroud)
我发现这个错误没有用,因为我认为它与 CloudFormation 模板无法访问 in 中引用的 S3 资源有关。结果它更简单,“拒绝访问”错误实际上表明包含我的 CloudFormation 的 S3 文件未找到模板。在对我嵌套的 CloudFormation 堆栈的引用中,TemplateURL: 有一个错字。
归档时间: |
|
查看次数: |
1687 次 |
最近记录: |