我正在尝试启动一个 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)