Skip to content

Default Region in collect.py code #935

@vnandyal

Description

@vnandyal

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'
  1. Does the code in the snippet set the default region to us-east-1 if the other conditions are not met ?
  2. 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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions