Skip to content

Commit

Permalink
add CAPABILITY_AUTO_EXPAND capability for macros (#731)
Browse files Browse the repository at this point in the history
Without this capability, creating a stack with a macro results in the
following error:

An error occurred (InsufficientCapabilitiesException) when calling the
CreateStack operation: Requires capabilities : [CAPABILITY_AUTO_EXPAND]
  • Loading branch information
troyready authored and phobologic committed May 16, 2019
1 parent fde9bd4 commit 5154941
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stacker/providers/aws/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
MAX_TAIL_RETRIES = 15
TAIL_RETRY_SLEEP = 1
GET_EVENTS_SLEEP = 1
DEFAULT_CAPABILITIES = ["CAPABILITY_NAMED_IAM", ]
DEFAULT_CAPABILITIES = ["CAPABILITY_NAMED_IAM",
"CAPABILITY_AUTO_EXPAND"]


def get_cloudformation_client(session):
Expand Down
1 change: 1 addition & 0 deletions stacker/tests/providers/aws/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def generate_change_set_response(status, execution_status="AVAILABLE",
],
"Capabilities": [
"CAPABILITY_NAMED_IAM",
"CAPABILITY_AUTO_EXPAND"
],
"Tags": [
{
Expand Down

0 comments on commit 5154941

Please sign in to comment.