aws-cloudformation-templates icon indicating copy to clipboard operation
aws-cloudformation-templates copied to clipboard

PyPlate macro: "YAML not well-formed. (line 12, column 23)"

Open miparnisari opened this issue 5 years ago • 1 comments

When trying to deploy the PyPlate macro:

aws cloudformation package \
    --template-file python.yaml \
    --s3-bucket macros-cfn-mparnisa \
    --output-template-file packaged.yaml

aws cloudformation deploy \
    --stack-name Pyplate-macro \
    --template-file packaged.yaml \
    --capabilities CAPABILITY_IAM

(where python.yaml is this file)

I get this error:

An error occurred (ValidationError) when calling the CreateChangeSet operation: Template format error: YAML not well-formed. (line 12, column 23)

I got this to work only after changing the file packaged.yaml from

Action: [sts:AssumeRole] Action: [logs:*]

to

Action: ['sts:AssumeRole'] Action: ['logs:*']

miparnisari avatar Mar 22 '20 01:03 miparnisari

Looks related to https://github.com/aws/aws-cli/issues/3991

miparnisari avatar Mar 22 '20 01:03 miparnisari

Due to inactivity this issue will be closed in 7 days

github-actions[bot] avatar Apr 24 '24 19:04 github-actions[bot]