-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to remove detached internet gateway (#1786)
Add ability to remove detached internet gateway SUMMARY Introduces the ability to remove an internet gateway that is not attached to a VPC. To remove an internet gateway either the ID of the internet gateway or the ID of the attached VPC can be supplied. It is also possible to supply both IDs. If both IDs are supplied then a failure will be generated if the attached VPC ID does not match the user supplied VPC. Fixes #1669 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_vpc_igw ADDITIONAL INFORMATION I wasn't able to add a test for removing an internet gateway that is detached as the module currently doesn't have a way to create a detached internet gateway. I plan on opening a follow-up PR for that use case and will add an appropriate removal test in that PR. Reviewed-by: Mark Chappell Reviewed-by: Brant Evans <[email protected]> Reviewed-by: Brian A. Teller
- Loading branch information
Showing
4 changed files
with
492 additions
and
21 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
changelogs/fragments/ec2_vpc_igw-delete_unattached-gateway.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
minor_changes: | ||
- ec2_vpc_igw - Add ability to delete a vpc internet gateway using the id of the gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). | ||
- ec2_vpc_igw - Add ability to create an internet gateway without attaching a VPC (https://github.com/ansible-collections/amazon.aws/pull/1786). | ||
- ec2_vpc_igw - Add ability to attach/detach VPC to/from internet gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). | ||
- ec2_vpc_igw - Add ability to change VPC attached to internet gateway (https://github.com/ansible-collections/amazon.aws/pull/1786). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
vpc_name: '{{ resource_prefix }}-vpc' | ||
vpc_seed: '{{ resource_prefix }}' | ||
vpc_cidr: 10.{{ 256 | random(seed=vpc_seed) }}.0.0/16 | ||
vpc_name_2: '{{ tiny_prefix }}-vpc-2' | ||
vpc_seed_2: '{{ tiny_prefix }}' | ||
vpc_cidr_2: 10.{{ 256 | random(seed=vpc_seed_2) }}.0.0/16 |
Oops, something went wrong.