internet_gateways
Retrieves a list of internet_gateways
in a region
Overview
Name | internet_gateways |
Type | Resource |
Description | Allocates an internet gateway for use with a VPC. After creating the Internet gateway, you then attach it to a VPC. |
Id | aws.ec2.internet_gateways |
Fields
Name | Datatype | Description |
---|---|---|
internet_gateway_id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | data__DesiredState, region |
list_resource | SELECT | region |
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