aws-samples/ecs-refarch-cloudformation

CloudFormation validate-template error on website-service/service.yaml

dougtoppin opened this issue · 2 comments

Before copying CF templates to S3 I typically run validate-template on them using the aws cli. I notice that this error is now appearing when I validate:

aws cloudformation validate-template --template-body file://services/website-service/service.yaml

An error occurred (ValidationError) when calling the ValidateTemplate operation: Template error: if specifying one argument to Fn::GetAtt, that argument must be a non-empty string in format <LogicalId>.<Attribute>

I think that it might be due to the following line (error does not occur if commented out):

RoleARN: !GetAtt ECSServiceAutoScalingRoleARN

Is this expected?

I just confirmed that at the CF console as well the website-service/service.yaml generates the same validation error.

2/20/2018, 9:55:20 AM - Template contains errors.: Template error: if specifying one argument to Fn::GetAtt, that argument must be a non-empty string in format .

Issue seems to be caused by invalid output for "ECSServiceAutoScalingRole" in infrastructure/ecs-cluster.yaml
Was able to replicate, should be resolved by:
#57