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
Name | internet_gateway |
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_gateway |
Fields
Name | Datatype | Description |
---|---|---|
internet_gateway_id | string | |
tags | array | Any tags to assign to the internet gateway. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__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