Commit 7cca0304 by Feanil Patel

Make the option group overridable.

parent be4ccc76
......@@ -72,6 +72,8 @@ def parse_args(args=sys.argv[1:]):
help="create a sql dump after launching it into the vpc")
parser.add_argument('-s', '--secret-var-files', action="append", required=True,
help="use one or more secret var files to run ansible against the host to update db users")
parser.add_argument('-o', '--dest-option-group', default="default:mysql-5-6",
help="the option group for the new rds.")
return parser.parse_args(args)
......@@ -103,7 +105,7 @@ if __name__ == '__main__':
target_db_instance_identifier=restore_dbid,
use_latest_restorable_time=True,
db_instance_class=args.type,
option_group_name='default:mysql-5-6'
option_group_name=args.dest_option_group,
)
if args.vpc:
restore_args['db_subnet_group_name'] = args.subnet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment