From 0c8c3d20e5fa20f0bdcb7d0778f003d5e9125ab3 Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Thu, 19 Oct 2023 23:29:43 -0500 Subject: [PATCH] Add example for deleting an existing VPC (#1801) 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 --- plugins/modules/ec2_vpc_net.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/modules/ec2_vpc_net.py b/plugins/modules/ec2_vpc_net.py index 794a49fe91c..dd924823ec4 100644 --- a/plugins/modules/ec2_vpc_net.py +++ b/plugins/modules/ec2_vpc_net.py @@ -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"""