Vpc
A resource of the AWS provider, version 0.3.0, in its Networking group. Import it with:
import Vpc from "aws/networking"Example
resource Vpc example {
cidrBlock = "example-value"
ipv6CidrBlock = "example-value"
instanceTenancy = "default"
enableDnsSupport = true
enableDnsHostnames = false
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
cidrBlock | string | — | No | The IPv4 CIDR block for the VPC (e.g., 10.0.0.0/16) |
ipv6CidrBlock | string | — | No | The IPv6 CIDR block for the VPC. If specified, AWS associates an IPv6 CIDR block |
instanceTenancy | string | "default" | No | Tenancy option for instances Allowed: "default", "dedicated" |
enableDnsSupport | boolean | true | No | Enable DNS support in the VPC |
enableDnsHostnames | boolean | false | No | Enable DNS hostnames in the VPC |
tags | object | — | No | Tags to apply to the VPC |
Set by AWS after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
vpcId | string | No | The VPC ID assigned by AWS |
state | string | No | The current state of the VPC (pending, available) |
mainRouteTableId | string | No | The ID of the main route table |
defaultNetworkAclId | string | No | The ID of the default network ACL |
defaultSecurityGroupId | string | No | The ID of the default security group |
ownerId | string | No | The AWS account ID that owns the VPC |
arn | string | Yes | The Amazon Resource Name (ARN) of the VPC |