Skip to content
This repository was archived by the owner on Aug 12, 2019. It is now read-only.

Commit aa9547d

Browse files
committed
Made sure that the default arguments for .add_aws_account() properly adds all regions. Solved issue #10
1 parent c17d201 commit aa9547d

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

deepsecurity/environments.py

+12-7
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,18 @@ def add_aws_account(self, name, aws_access_key=None, aws_secret_key=None, region
3131
responses = {}
3232

3333
regions = {
34-
'us-east-1': 'amazon.cloud.region.key.1',
35-
'us-west-1': 'amazon.cloud.region.key.2',
36-
'us-west-2': 'amazon.cloud.region.key.3',
37-
'eu-west-1': 'amazon.cloud.region.key.4',
38-
'ap-southeast-1': 'amazon.cloud.region.key.5',
39-
'ap-northeast-1': 'amazon.cloud.region.key.6',
40-
'sa-east-1': 'amazon.cloud.region.key.7',
34+
'us-east-1': 'amazon.cloud.region.key.1', # N. Virginia
35+
'us-west-1': 'amazon.cloud.region.key.2', # N. California
36+
'us-west-2': 'amazon.cloud.region.key.3', # Oregon
37+
'eu-west-1': 'amazon.cloud.region.key.4', # Ireland
38+
'ap-southeast-1': 'amazon.cloud.region.key.5', # Singapore
39+
'ap-northeast-1': 'amazon.cloud.region.key.6', # Tokyo
40+
'sa-east-1': 'amazon.cloud.region.key.7', # Sao Paulo
41+
'ap-southeast-2': 'amazon.cloud.region.key.8', # Sydney
42+
# need to add:
43+
# ap-south-1 / Mumbai
44+
# ap-northeast-2 / Seoul
45+
# eu-central-1 / Frankfurt
4146
}
4247

4348
regions_to_add = []

0 commit comments

Comments
 (0)