Skip to main content

internet_gateway

Gets or updates an individual internet_gateway resource, use internet_gateways to retrieve a list of resources or to create or delete a resource.

Overview

Nameinternet_gateway
TypeResource
DescriptionAllocates an internet gateway for use with a VPC. After creating the Internet gateway, you then attach it to a VPC.
Idaws.ec2.internet_gateway

Fields

NameDatatypeDescription
internet_gateway_idstring
tagsarrayAny tags to assign to the internet gateway.
regionstringAWS region.

Methods

NameAccessible byRequired Params
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT Example

SELECT
region,
internet_gateway_id,
tags
FROM aws.ec2.internet_gateway
WHERE region = 'us-east-1' AND data__Identifier = '<InternetGatewayId>';

Permissions

To operate on the internet_gateway resource, the following permissions are required:

Read

ec2:DescribeInternetGateways

Update

ec2:DeleteTags,
ec2:CreateTags,
ec2:DescribeInternetGateways