github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/aws/r/egress_only_internet_gateway.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_egress_only_internet_gateway" 4 sidebar_current: "docs-aws-resource-egress-only-internet-gateway" 5 description: |- 6 Provides a resource to create a VPC Egress Only Internet Gateway. 7 --- 8 9 # aws\_egress\_only\_internet\_gateway 10 11 [IPv6 only] Creates an egress-only Internet gateway for your VPC. 12 An egress-only Internet gateway is used to enable outbound communication 13 over IPv6 from instances in your VPC to the Internet, and prevents hosts 14 outside of your VPC from initiating an IPv6 connection with your instance. 15 16 ## Example Usage 17 18 ```hcl 19 resource "aws_vpc" "foo" { 20 cidr_block = "10.1.0.0/16" 21 assign_amazon_ipv6_cidr_block = true 22 } 23 24 resource "aws_egress_only_internet_gateway" "foo" { 25 vpc_id = "${aws_vpc.foo.id}" 26 } 27 ``` 28 29 ## Argument Reference 30 31 The following arguments are supported: 32 33 * `vpc_id` - (Required) The VPC ID to create in. 34 35 ## Attributes Reference 36 37 The following attributes are exported: 38 39 * `id` - The ID of the Egress Only Internet Gateway.