Closed rirze closed 4 years ago
That's not a valid policy. It should read:
Version: 2012-10-17
Statement:
- Effect: Allow
Resource: '*'
Action:
- ec2:AttachVolume
- ec2:DescribeVolumes
- ec2:DescribeAddress
- ec2:AssociateAddress
I'm not sure why CloudFormation would accept this as valid YAML. You cannot mix an object with an array.
Huh strange, I could've sworn it worked with CloudFormation. It works now with the correction you gave. Thanks for the quick response.
When I try to parse a CloudFormation file with the following structure:
The parser fails with this error:
However, I know this is correct syntax because Cloudformation can run this section of YAML without issue. Maybe there is a test case not handled by the parser for this library?