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

aw transit-gateway-attachment should check nukable before describing #478

Closed
kate-syberspace opened this issue Jun 14, 2023 · 1 comment · Fixed by #635
Closed

aw transit-gateway-attachment should check nukable before describing #478

kate-syberspace opened this issue Jun 14, 2023 · 1 comment · Fixed by #635
Assignees

Comments

@kate-syberspace
Copy link

Summary:

I'm using a very scoped IAM role to do my nuking, and only want to delete s3 resources. Here it would be nice to check IsNukeable(transitGatewayVpcAttachments.ResourceName(), resourceTypes) before running the DescribeTransitGateways to avoid seeing the error below.

Command:

AWS_PROFILE=${my_profile} AWS_REGION=${my-region} DISABLE_TELEMETRY=TRUE cloud-nuke aws \
  --resource-type s3  \
  --region "${my_region}" \
  --config "${config}" \
  --older-than 336h \

Error:

\| ResourceType               \| Description                         \| Error                                                                                                                                      \|
--
  | \| transit-gateway-attachment \| Unable to retrieve Transit Gateways \| UnauthorizedOperation: You are not authorized to perform this operation.                                                                   \|
  | \| 	status code: 403, request id: 0270f379-8325-45c5-a4e7-b0ecf3b177ed

@james03160927
Copy link
Contributor

Thanks for reporting this issue. Hey @kate-syberspace, would you be able to put up a PR with a fix?

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 a pull request may close this issue.

2 participants