I am trying to validate a Cloudformation template. The command I am issuing is:
▶ aws cloudformation validate-template --template-body file://template.json
The response I am getting, however, is:
"CapabilitiesReason": "The following resource(s) require capabilities:
[AWS::IAM::Role]",
I can't find any way to set the capability unfortunately.
How do you set the capability?
--capabilities=CAPABILITY_IAM
withcreate-stack
cli commands makes stacks butvalidate-stack
seems to require this capability also but there is no cli option for adding itcreate-stack
orupdate-stack
that you have to specify theCAPABILITY_IAM
capability.