我有一个受限的 IAM 用户,我试图获得最低限度的权限来干净地创建基线 ECS CloudFormation 参考架构:
https://github.com/aws-samples/ecs-refarch-cloudformation
但是,我无法部署参考堆栈。我收到此错误:
“Embedded stack arn:aws:cloudformation:us-east-1:*elided*:stack/icc-baselinestack-WebsiteService-*elided*/*elided* was not successfully created: The following resource(s) failed to create: [ServiceScalableTarget].”
我是 CloudFormation 的新手,我想知道如何最好地诊断原因。有没有地方可以让我获得有关问题原因的更详细的诊断信息?
FWIW 我可以在完全许可的私有 AWS 账户上部署参考架构,而不会遇到 AWS 打算使用此参考堆栈的任何麻烦。
作为参考,这是 service.yaml 中错误所指的部分:
ServiceScalableTarget:
Type: "AWS::ApplicationAutoScaling::ScalableTarget"
Properties:
MaxCapacity: !Ref MaxCount
MinCapacity: !Ref DesiredCount
ResourceId: !Join
- /
- - service
- !Ref Cluster
- !GetAtt Service.Name
RoleARN: !Ref ECSServiceAutoScalingRoleARN
ScalableDimension: ecs:service:DesiredCount
ServiceNamespace: ecs
这是我的命令行:
aws cloudformation create-stack --capabilities CAPABILITY_NAMED_IAM --stack-name icc-baselinestack --template-url https://s3.amazonaws.com/ecs-refarch-cloudformation/master.yaml