Skip to content

Commit

Permalink
Add AWS parameters to all stack set commands and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
flomotlik committed Jun 20, 2018
1 parent 7ddc260 commit 99fabd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion formica/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import sys

__version__ = '0.8.0'
__version__ = '0.8.1'

CHANGE_SET_FORMAT = "{stack}-change-set"

Expand Down
7 changes: 5 additions & 2 deletions formica/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,20 @@ def stack_set_parser(parser):
update_parser.set_defaults(func=stack_set.update_stack_set)

remove_parser = stack_set_subparsers.add_parser('remove', description='Remove a Stack Set')
add_aws_arguments(remove_parser)
add_stack_set_argument(remove_parser)
remove_parser.set_defaults(func=stack_set.remove_stack_set)

add_instances_parser = stack_set_subparsers.add_parser('add-instances',
description='Add Stack Set Instances')
add_aws_arguments(add_instances_parser)
add_stack_set_argument(add_instances_parser)
add_stack_set_instance_arguments(add_instances_parser)
add_instances_parser.set_defaults(func=stack_set.add_stack_set_instances)

remove_instances_parser = stack_set_subparsers.add_parser('remove-instances',
description='Remove Stack Set Instances')
add_aws_arguments(remove_instances_parser)
add_stack_set_argument(remove_instances_parser)
add_stack_set_instance_arguments(remove_instances_parser)
add_stack_set_instance_retain_argument(remove_instances_parser)
Expand Down Expand Up @@ -269,8 +272,8 @@ def add_stack_set_role_argument(parser):


def add_stack_set_instance_arguments(parser):
parser.add_argument('--accounts', nargs='+', help='The Accounts to deploy to')
parser.add_argument('--regions', nargs='+', help='The Regions in your accounts to deploy to')
parser.add_argument('--accounts', nargs='+', help='The Accounts for this operation')
parser.add_argument('--regions', nargs='+', help='The Regions for this operation')


def add_stack_set_instance_retain_argument(parser):
Expand Down

0 comments on commit 99fabd2

Please sign in to comment.