terraform/website/source/docs/providers/aws/r/internet_gateway.html.markdown

520 B

layout page_title sidebar_current
aws AWS: aws_internet_gateway docs-aws-resource-internet-gateway

aws_internet_gateway

Provides a resource to create a VPC Internet Gateway.

Example Usage

resource "aws_internet_gateway" "gw" {
    vpc_id = "${aws_vpc.main.id}"
}

Argument Reference

The following arguments are supported:

  • vpc_id - (Required) The VPC ID to create in.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Internet Gateway.