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

c7n-org fix resolve regions when all is set #6280

Merged
merged 5 commits into from
Nov 16, 2020

Conversation

mboret
Copy link
Contributor

@mboret mboret commented Nov 10, 2020

Currently, the 'resolve_regions' use the default boto3 credentials to get available regions when the region parameter is set to 'all'. This generates an error(botocore.exceptions.ClientError: An error occurred (RequestExpired) when calling the DescribeRegions operation: Request has expired) when the default AWS profile is not configured(my case) and doesn't check the targeted account(the result can be different depending on the enabled regions).

@mboret mboret requested a review from kapilt as a code owner November 10, 2020 13:39
Copy link
Collaborator

@kapilt kapilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, lgtm

@kapilt
Copy link
Collaborator

kapilt commented Nov 12, 2020

there's one other use of resolve_regions in c7n-trailcreator that needs updating

@mboret
Copy link
Contributor Author

mboret commented Nov 14, 2020

@kapilt Updated

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.

None yet

2 participants