Skip to main content

internet_gateways

Retrieves a list of internet_gateways in a region

Overview

Nameinternet_gateways
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_gateways

Fields

NameDatatypeDescription
internet_gateway_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTdata__DesiredState, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
internet_gateway_id
FROM aws.ec2.internet_gateways
WHERE region = 'us-east-1'

Permissions

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

Create

ec2:CreateInternetGateway,
ec2:CreateTags,
ec2:DescribeInternetGateways

List

ec2:DescribeInternetGateways