I have a constrained IAM user that I'm trying to get minimally permissioned to create the baseline ECS CloudFormation reference architecture cleanly:
https://github.com/aws-samples/ecs-refarch-cloudformation
However, I can't get the reference stack to deploy. I get this error:
“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].”
I'm new to CloudFormation and I'm wondering how best to diagnose the cause. Is there a place where I can get more detailed diagnostic information about the cause of the problem?
FWIW I can deploy the reference architecture on a fully-permissioned private AWS account without any trouble as AWS intends with this reference stack.
For reference this is the section in service.yaml the error refers to:
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
And this is my command line:
aws cloudformation create-stack --capabilities CAPABILITY_NAMED_IAM --stack-name icc-baselinestack --template-url https://s3.amazonaws.com/ecs-refarch-cloudformation/master.yaml