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
Name | egress_only_internet_gateways |
Type | Resource |
Description | Resource Type definition for AWS::EC2::EgressOnlyInternetGateway |
Id | aws.ec2.egress_only_internet_gateways |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Service Generated ID of the EgressOnlyInternetGateway |
vpc_id | string | The ID of the VPC for which to create the egress-only internet gateway. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | VpcId, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.egress_only_internet_gateways (
VpcId,
region
)
SELECT
'{{ VpcId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.egress_only_internet_gateways (
VpcId,
region
)
SELECT
'{{ VpcId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: egress_only_internet_gateway
props:
- name: VpcId
value: '{{ VpcId }}'
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