duo-labs / duo-labs/cloudmapper
Default Region in collect.py code
- Dominant language
- JavaScript
- Stars
- 6.3k
- Forks
- 836
- PR merge metrics
- No merged PRs in 30d
Description
**Note** the Network Visualization functionality (command `prepare`) is no longer maintained.
Code being called - collect.py
Working out of a virtualenv environment and Docker
I have a few questions regarding the default region in the collect.py code.
1. What does the following code snippet do ?
default_region = os.environ.get("AWS_REGION", 'us-east-1')
if 'gov-' in default_region:
default_region = 'us-gov-west-1'
elif 'cn-' in default_region:
default_region = 'cn-north-1'
else:
default_region = 'us-east-1'
2. Does the code in the snippet set the default region to us-east-1 if the other conditions are not met ?
3. What if I have a default region set to us-west-1 in my aws config ? Will us-west-1 be used instead of the above ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.