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

✨ backup way to describe aws regions #5143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Jan 31, 2025

This is a workaround for cases where the DescribeRegions API is blocked. We use a well known regional table provided by AWS to list all possible regions.

https://api.regional-table.region-services.aws.a2z.com/index.json

NOTE: if we need to validate that we have access to that region or, that the region is enabled, we can improve this function to do STS identity calls for all regions.

This is a workaround for cases where the DescribeRegions API is blocked.
We use a well known regional table provided by AWS to list all possible
regions.

https://api.regional-table.region-services.aws.a2z.com/index.json

NOTE: if we need to validate that we have access to that region or, that
the region is enabled, we can improve this function to do STS identity
calls for all regions.

Signed-off-by: Salim Afiune Maya <[email protected]>
Copy link
Contributor

Test Results

3 208 tests  +2   3 204 ✅ +2   1m 52s ⏱️ +9s
  385 suites ±0       4 💤 ±0 
   29 files   ±0       0 ❌ ±0 

Results for commit 3d1ce25. ± Comparison against base commit 8f5e9f1.

@vjeffrey
Copy link
Contributor

vjeffrey commented Jan 31, 2025

have you tested this in an aws account with one region denied?

im asking because i wanted to make sure we know that the scan will go through/the resources will behave properly with a denied region

@afiune
Copy link
Contributor Author

afiune commented Feb 3, 2025

@vjeffrey I have not tested how a denied region will behave, I can do that testing and report back the findings.

@vjeffrey
Copy link
Contributor

vjeffrey commented Feb 5, 2025

@afiune any progress on this?

@afiune
Copy link
Contributor Author

afiune commented Feb 7, 2025

@vjeffrey trying to get access to an AWS organization, maybe with Control Tower, I can test on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants