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

Why the NAT gateway which is actually being used comes under 'Unused NAT gateways should be deleted' #111

Closed
Niba-nazar opened this issue Nov 14, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Niba-nazar
Copy link

Why the NAT gateway which is actually in use comes under 'Unused NAT gateways should be deleted '

image

@Niba-nazar Niba-nazar added the bug Something isn't working label Nov 14, 2022
@Niba-nazar Niba-nazar closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2022
@Niba-nazar
Copy link
Author

Niba-nazar commented Nov 14, 2022

Why the NAT gateway which is actually in use comes under 'Unused NAT gateways should be deleted '

image

2days before the result was like the above pic, but now it seems working:

image

@misraved
Copy link
Contributor

Sorry for the glitch @Niba-nazar. Glad to see that you are unblocked 👍 .

The underlying query behind this control is https://github.com/turbot/steampipe-mod-aws-thrifty/blob/main/query/vpc/vpc_nat_gateway_unused.sql.

This looks at the following parameters before deeming a particular NAT Gateway unused:

  • NAT Gateway state (state column in aws_vpc_nat_gateway table)
  • Instance state
  • Subnet ID attached to the instance

Is it possible that one of the above conditions was not met when the control was executed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants