mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-17 22:00:45 -04:00
834 B
834 B
layout, page_title, sidebar_current
| layout | page_title | sidebar_current |
|---|---|---|
| aws | AWS: aws_vpc | docs-aws-resource-vpc |
aws_vpc
Provides an VPC resource.
Example Usage
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
}
Argument Reference
The following arguments are supported:
cidr_block- (Required) The CIDR block for the VPC.enable_dns_support- (Optional) A boolean flag to enable/disable DNS support in the VPC. Defaults true.enable_dns_hostnames- (Optional) A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false.
Attributes Reference
The following attributes are exported:
id- The ID of the VPCcidr_block- The CIDR block of the VPCenable_dns_support- Whether or not the VPC has DNS supportenable_dns_hostnames- Whether or not the VPC has DNS hostname support