From 99fabd2fea624d87e23562002e508f5d121b34b9 Mon Sep 17 00:00:00 2001 From: Florian Motlik Date: Wed, 20 Jun 2018 17:18:39 +0200 Subject: [PATCH] Add AWS parameters to all stack set commands and bump --- formica/__init__.py | 2 +- formica/cli.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/formica/__init__.py b/formica/__init__.py index c309571..7ef1a26 100644 --- a/formica/__init__.py +++ b/formica/__init__.py @@ -1,7 +1,7 @@ import logging import sys -__version__ = '0.8.0' +__version__ = '0.8.1' CHANGE_SET_FORMAT = "{stack}-change-set" diff --git a/formica/cli.py b/formica/cli.py index fcd3a99..eaa5606 100755 --- a/formica/cli.py +++ b/formica/cli.py @@ -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) @@ -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):