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

tools/c7n-org - warn on AuthFailure when listing regions #7687

Merged

Conversation

ajkerrigan
Copy link
Member

#7494 allowed c7n-org to warn and continue in the case of AccessDenied error assuming target roles. #7685 raises a related error - an AuthFailure while describing regions. One way around that is to treat that the same way as an AccessDenied error during the role-assume step: warn, continue, and effectively ignore that account.

Some alternatives might be:

  • Treat AuthFailure differently, either explicitly failing the policy on purpose or falling back to the default set of regions
  • Allow the warn/continue behavior to accommodate any boto errors we hit when listing regions, rather than picking and choosing specific exceptions

Closes #7685

@ajkerrigan ajkerrigan requested a review from kapilt as a code owner August 24, 2022 23:24
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.

lgtm

@ajkerrigan ajkerrigan merged commit df32983 into cloud-custodian:master Aug 26, 2022
@ajkerrigan ajkerrigan deleted the fix/c7n-org-region-authfailure branch August 26, 2022 14:34
kentnsw pushed a commit to newscorp-ghfb/cloud-custodian that referenced this pull request Sep 2, 2022
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.

AWS GovCloud c7n-org AuthFailure
2 participants