Skip to content

Commit

Permalink
Merge pull request #408 from zalando-stups/CAPABILITY_NAMED_IAM-support
Browse files Browse the repository at this point in the history
add support for CAPABILITY_NAMED_IAM
  • Loading branch information
tuxlife authored Oct 31, 2016
2 parents 7e675fc + cd63e28 commit f4f562d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion senza/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ def get_required_capabilities(data: dict):
capabilities = []
for logical_id, config in data.get('Resources', {}).items():
if config.get('Type').startswith('AWS::IAM'):
capabilities.append('CAPABILITY_IAM')
if config.get('Properties', {}).get('RoleName'):
capabilities.append('CAPABILITY_NAMED_IAM')
else:
capabilities.append('CAPABILITY_IAM')
return capabilities


Expand Down

0 comments on commit f4f562d

Please sign in to comment.