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

Lack of nat_gateways method for Aws::EC2::Vpc makes deletion cumbersome. #1323

Closed
colstrom opened this issue Oct 21, 2016 · 3 comments
Closed
Labels
feature-request A feature should be added or improved.

Comments

@colstrom
Copy link

When deleting a VPC, dependent resources must be removed first. nat_gateways is the only dependency not identifiable from an Aws::EC2::Vpc object.

I'm curious about the reasons for this.

  • Is it simply a "not implemented yet" scenario?
  • Have I overlooked an existing method somewhere?
  • Is there a reason (documented or not) why this does not or should not exist?

Alternatively, is there a simpler approach to deleting a VPC?

@trevorrowe trevorrowe added feature-request A feature should be added or improved. Version 2 labels Nov 17, 2016
@trevorrowe
Copy link
Member

It has simply not been implemented yet. I'm going to mark this as a feature request so we can add it to our backlog.

awood45 added a commit that referenced this issue Nov 29, 2016
Related to GitHub issues:

* #1299
* #1323
* #1335
* #1336
@awood45
Copy link
Member

awood45 commented Nov 29, 2016

Added to feature request backlog.

@awood45 awood45 closed this as completed Nov 29, 2016
@mullermp
Copy link
Contributor

mullermp commented Oct 4, 2019

Hey @colstrom - I dug out this feature request and added a NAT gateway resource model. Per my testing, I was able to successfully delete a NAT gateway. The changes were pushed to an internal package. When I get the opportunity, I will be sure to push this change out for all of the SDKs.

Aws> r.nat_gateways.first.delete
[Aws::EC2::Client 200 0.136147 0 retries] describe_nat_gateways()  
[Aws::EC2::Client 200 0.048603 0 retries] delete_nat_gateway(nat_gateway_id:"nat-0050e741ba6dbc9c7")  
=> #<struct Aws::EC2::Types::DeleteNatGatewayResult nat_gateway_id="nat-0050e741ba6dbc9c7">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

4 participants