AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::EgressOnlyInternetGateway

EC2 EgressOnlyInternetGateway

Resource Type definition for AWS::EC2::EgressOnlyInternetGateway

Properties

2 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
VpcId
string
RequiredCreate-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
IdstringService Generated ID of the EgressOnlyInternetGateway

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::EgressOnlyInternetGateway

Resources:
  MyResource:
    Type: AWS::EC2::EgressOnlyInternetGateway
    Properties:
      VpcId: "my-vpcid"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:CreateEgressOnlyInternetGatewayec2:CreateTagsec2:DescribeEgressOnlyInternetGateways

read

ec2:DescribeEgressOnlyInternetGatewaysec2:DescribeTags

delete

ec2:DeleteEgressOnlyInternetGatewayec2:DescribeEgressOnlyInternetGatewaysec2:DescribeVpcsec2:DeleteTags

update

ec2:DeleteTagsec2:CreateTagsec2:DescribeEgressOnlyInternetGateways

list

ec2:DescribeEgressOnlyInternetGateways

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties3
Required1
TaggingSupported
Primary IDId

Supported Operations

CreateReadDeleteUpdateList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

VpcId

External Links