Resource
aws.ec2.EgressOnlyInternetGateway
Describes an egress-only internet gateway.
Example
let vpc = aws.ec2.Vpc {
cidr_block = '10.0.0.0/16'
tags = {
Environment = 'example'
}
}
aws.ec2.EgressOnlyInternetGateway {
# The VPC needs an IPv6 CIDR and an IPv6 route to this gateway before it
# can carry traffic.
vpc_id = vpc.vpc_id
tags = {
Environment = 'example'
}
}
Argument Reference
vpc_id
- Type:
VpcId (pattern: /^vpc-[0-9a-f]{8,}$/ (Full)) - Required: Yes
The ID of the VPC for which to create the egress-only internet gateway.
tags
- Type: Map<
String,String> - Required: No
The tags for the resource.
Attribute Reference
egress_only_internet_gateway_id
- Type:
InternetGatewayId (pattern: /^eigw-[0-9a-f]{8,}$/ (Full)) - Read-only
The ID of the egress-only internet gateway.