A role to detach and delete the internet gateway you specify from virtual private cloud. If any Amazon EC2 instances in your virtual private cloud (VPC) have elastic IP addresses or public IPv4 addresses associated with them, the role fails.
AWS User Account with the following permission:
- ec2:DeleteInternetGateway
- ec2:DescribeInternetGateways
- ec2:DetachInternetGateway
- internet_gateway_id: (Required) The ID of the internet gateway that you want to delete.
- role: aws_setup_credentials
- hosts: localhost
roles:
- role: cloud.aws_ops.awsconfig_detach_and_delete_internet_gateway
internet_gateway_id: "igw-053865b26102549d1"
GNU General Public License v3.0 or later
See LICENSE to see the full text.
- Ansible Cloud Content Team