Skip to content

Commit

Permalink
Separated opt-in and default regions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrett Andrulis committed Dec 15, 2021
1 parent a3e8aef commit f210770
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rdk/rdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2516,7 +2516,7 @@ def create_rule_template(self):
def create_region_set(self):
self.args = get_create_region_set_parser().parse_args(self.args.command_args, self.args)
output_file = self.args.output_file
output_dict = {"default":["us-east-1","us-west-1","eu-north-1","ap-east-1"],"aws-cn-region-set":["cn-north-1","cn-northwest-1"]}
output_dict = {"default":["us-east-1","us-west-1","eu-north-1","ap-southeast-1"],"aws-cn-region-set":["cn-north-1","cn-northwest-1"]}
with open(f"{output_file}.yaml","w+") as file:
yaml.dump(output_dict, file, default_flow_style = False)

Expand Down
9 changes: 5 additions & 4 deletions test-region.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
default:
- af-south-1
- ap-east-1
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
Expand All @@ -10,16 +8,19 @@ default:
- ca-central-1
- eu-central-1
- eu-north-1
- eu-south-1
- eu-west-1
- eu-west-2
- eu-west-3
- me-south-1
- sa-east-1
- us-east-1
- us-east-2
- us-west-1
- us-west-2
set-opt-in:
- me-south-1
- ap-east-1
- af-south-1
- eu-south-1
set-china:
- cn-north-1
- cn-northwest-1
Expand Down

0 comments on commit f210770

Please sign in to comment.