31 lines
520 B
Markdown
31 lines
520 B
Markdown
|
---
|
||
|
layout: "aws"
|
||
|
page_title: "AWS: aws_internet_gateway"
|
||
|
sidebar_current: "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.
|
||
|
|