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

Commit

Permalink
Made sure that the default arguments for .add_aws_account() properly …
Browse files Browse the repository at this point in the history
…adds all regions. Solved issue #10
  • Loading branch information
marknca committed Aug 9, 2016
1 parent c17d201 commit aa9547d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions deepsecurity/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,18 @@ def add_aws_account(self, name, aws_access_key=None, aws_secret_key=None, region
responses = {}

regions = {
'us-east-1': 'amazon.cloud.region.key.1',
'us-west-1': 'amazon.cloud.region.key.2',
'us-west-2': 'amazon.cloud.region.key.3',
'eu-west-1': 'amazon.cloud.region.key.4',
'ap-southeast-1': 'amazon.cloud.region.key.5',
'ap-northeast-1': 'amazon.cloud.region.key.6',
'sa-east-1': 'amazon.cloud.region.key.7',
'us-east-1': 'amazon.cloud.region.key.1', # N. Virginia
'us-west-1': 'amazon.cloud.region.key.2', # N. California
'us-west-2': 'amazon.cloud.region.key.3', # Oregon
'eu-west-1': 'amazon.cloud.region.key.4', # Ireland
'ap-southeast-1': 'amazon.cloud.region.key.5', # Singapore
'ap-northeast-1': 'amazon.cloud.region.key.6', # Tokyo
'sa-east-1': 'amazon.cloud.region.key.7', # Sao Paulo
'ap-southeast-2': 'amazon.cloud.region.key.8', # Sydney
# need to add:
# ap-south-1 / Mumbai
# ap-northeast-2 / Seoul
# eu-central-1 / Frankfurt
}

regions_to_add = []
Expand Down

0 comments on commit aa9547d

Please sign in to comment.