Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodetect regions #4

Open
devt opened this issue Feb 2, 2023 · 2 comments
Open

Autodetect regions #4

devt opened this issue Feb 2, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request triaged Has been triaged by solutions team

Comments

@devt
Copy link

devt commented Feb 2, 2023

Use case
In a large org with many accounts optional regions are enabled only in several dozens accounts and we don't necessarily have a list, If we run for all optional regions, we get lots of errors (several hundreds of accounts report 4-5 errors about regions not being present)

Auto detect what regions to scan
Would like the code to operate in all regions which are enabled for the specific account

Additional context
Above implies we make a call to ec2.describe_regions for each account and this is what determines which regions are scanned

@devt devt added the enhancement New feature or request label Feb 2, 2023
@groverlalit
Copy link
Member

Thanks for opening this feature request. We have added this to our backlog and will review in the next release planning.

@groverlalit groverlalit added the triaged Has been triaged by solutions team label Jan 5, 2024
@groverlalit
Copy link
Member

We reviewed this issue and will be supporting this feature request. However, we will implement list_regions API call using 'account' client instead of describe_regions using 'ec2' client.

The prefer to use list_regions API because it allows us to provide RegionOptStatusContains=['ENABLED'|'ENABLED_BY_DEFAULT']

@groverlalit groverlalit self-assigned this Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged Has been triaged by solutions team
Projects
None yet
Development

No branches or pull requests

2 participants