Skip to content

Commit

Permalink
Added CAPABILITY_AUTO_EXPAND to enable use of cloudformation macros i…
Browse files Browse the repository at this point in the history
…n our templates. (#90)
  • Loading branch information
vfangellation authored Dec 19, 2018
1 parent 60994c7 commit 7e31c67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions efopen/ef_cf.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def main():
StackName=stack_name,
TemplateBody=template,
Parameters=parameters,
Capabilities=['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM'],
Capabilities=['CAPABILITY_AUTO_EXPAND', 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM'],
ChangeSetName=stack_name,
ClientToken=stack_name
)
Expand All @@ -274,15 +274,15 @@ def main():
StackName=stack_name,
TemplateBody=template,
Parameters=parameters,
Capabilities=['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM']
Capabilities=['CAPABILITY_AUTO_EXPAND', 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM']
)
else:
print("Creating stack: {}".format(stack_name))
clients["cloudformation"].create_stack(
StackName=stack_name,
TemplateBody=template,
Parameters=parameters,
Capabilities=['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM']
Capabilities=['CAPABILITY_AUTO_EXPAND', 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM']
)
if context.poll_status:
while True:
Expand Down

0 comments on commit 7e31c67

Please sign in to comment.