Skip to content

Commit

Permalink
Add example for deleting an existing VPC (ansible-collections#1801)
Browse files Browse the repository at this point in the history
Add example for deleting an existing VPC

SUMMARY
Delete an existing VPC by setting the state to "absent" and specify the vpc_id.
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
amazon.aws.ec2_vpc_net:  state:

Reviewed-by: Mark Chappell
  • Loading branch information
Aditya Putta authored Oct 20, 2023
1 parent 985d8b1 commit 0c8c3d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/modules/ec2_vpc_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
ipv6_cidr: True
region: us-east-1
tenancy: dedicated
- name: Delete an existing VPC
amazon.aws.ec2_vpc_net:
vpc_id: vpc-0123456789abcdef0
state: absent
"""

RETURN = r"""
Expand Down

0 comments on commit 0c8c3d2

Please sign in to comment.