AWS EC2 Detach Internet Gateway VERSION 1


This handler uses the AWS REST API to detached an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses. For more information see the AWS Amazon Virtual Private Cloud User Guide online.

The Dry Run parameter validates user permissions and inputs. If it is set to true, an error will always be thrown by the handler before completing the handler action. Error response will be 'DryRunOperation' if the account has proper permissions and inputs; 'UnauthorizedOperation' if the account does not have proper permissions.


Parameters

NameDescription
Dry RunDry run validates user permissions and inputs without completing the EC2 action (true or false).
Internet Gateway IDThe ID of the Internet Gateway to detach. Must match an existing value in AWS.
VPC IDThe ID of the VPC to which the Internet Gateway is currently attached. Must match an existing value in AWS.

Sample Configuration

NameDescription
Dry Runfalse
Internet Gateway IDigw-6c20ab09
VPC IDvpc-2f27684a

Results

This handler does not return any results.


Changelog

No Changelog Available.