Skip to content

Commit

Permalink
add support for CAPABILITY_NAMED_IAM
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxlife committed Oct 31, 2016
1 parent 7e675fc commit cd63e28
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 cd63e28

Please sign in to comment.