Skip to main content
Kinetic Community

AWS EC2 Detach Internet Gateway

Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC.

Downloads

By downloading this file, you acknowledge that you agree to our Terms of Service

aws_ec2_detach_internet_gateway_v1.zip

Detailed Description

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

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

Sample Configuration

Parameter Example Configuration
Dry Run false
Internet Gateway ID igw-6c20ab09
VPC ID vpc-2f27684a

Results

This handler returns no results

Change Log

Version Date Description
1 2017-08-23 * Initial version. See README for details.