AWS::EC2::EgressOnlyInternetGateway
The AWS::EC2::EgressOnlyInternetGateway resource creates an egress-only
Internet gateway for your VPC (over IPv6 only). An egress-only Internet gateway enables
outbound communication over IPv6 from instances in your VPC to the Internet. It also
prevents
hosts outside of your VPC from initiating an IPv6 connection with your instance.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type": "AWS::EC2::EgressOnlyInternetGateway", "Properties": { "VpcId":String} }
YAML
Type: AWS::EC2::EgressOnlyInternetGateway Properties: VpcId:String
Properties
VpcId-
The ID of the VPC for which to create the egress-only Internet gateway.
Required: Yes
Type: String
Update requires: Replacement
Return Values
Ref
When the logical ID of this resource is provided to the Ref intrinsic function, Ref returns the ID of the egress-only Internet gateway (the physical resource ID).
For more information about using the Ref function, see Ref.
Example
The following example creates an egress-only Internet gateway for the specified VPC.
JSON
{ "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "myEgressOnlyInternetGateway": { "Type": "AWS::EC2::EgressOnlyInternetGateway", "Properties": { "VpcId": "vpc-1a2b3c4d" } } } }
YAML
AWSTemplateFormatVersion: 2010-09-09 Resources: myEgressOnlyInternetGateway: Type: AWS::EC2::EgressOnlyInternetGateway Properties: VpcId: vpc-1a2b3c4d
More Info
-
CreateEgressOnlyInternetGateway in the Amazon EC2 API Reference.
