Skip to main content

egress_only_internet_gateways

Creates, updates, deletes or gets an egress_only_internet_gateway resource or lists egress_only_internet_gateways in a region

Overview

Nameegress_only_internet_gateways
TypeResource
DescriptionResource Type definition for AWS::EC2::EgressOnlyInternetGateway
Idaws.ec2.egress_only_internet_gateways

Fields

NameDatatypeDescription
idstringService Generated ID of the EgressOnlyInternetGateway
vpc_idstringThe ID of the VPC for which to create the egress-only internet gateway.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTVpcId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all egress_only_internet_gateways in a region.

SELECT
region,
id,
vpc_id
FROM aws.ec2.egress_only_internet_gateways
WHERE region = 'us-east-1';

Gets all properties from an individual egress_only_internet_gateway.

SELECT
region,
id,
vpc_id
FROM aws.ec2.egress_only_internet_gateways
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new egress_only_internet_gateway resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ec2.egress_only_internet_gateways (
VpcId,
region
)
SELECT
'{{ VpcId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ec2.egress_only_internet_gateways
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

ec2:CreateEgressOnlyInternetGateway,
ec2:DescribeEgressOnlyInternetGateways

Read

ec2:DescribeEgressOnlyInternetGateways

Delete

ec2:DeleteEgressOnlyInternetGateway,
ec2:DescribeEgressOnlyInternetGateways,
ec2:DescribeVpcs

List

ec2:DescribeEgressOnlyInternetGateways