Carina

Resource

aws.ec2.Vpc

Describes a VPC.

Example

aws.ec2.Vpc {
  cidr_block           = '10.0.0.0/16'
  enable_dns_support   = true
  enable_dns_hostnames = true
  instance_tenancy     = aws.ec2.Vpc.InstanceTenancy.default

  tags = {
    Environment = 'example'
  }
}

Argument Reference

cidr_block

The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

instance_tenancy

The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC. Important: The host value cannot be used with this parameter. Use the default or dedicated values only. Default: default

ipv4_ipam_pool_id

The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. For more information, see What is IPAM? in the Amazon VPC IPAM User Guide.

ipv4_netmask_length

The netmask length of the IPv4 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.

tags

The tags for the resource.

Enum Values

instance_tenancy (InstanceTenancy)

Value DSL Identifier
dedicated aws.ec2.Vpc.InstanceTenancy.dedicated
default aws.ec2.Vpc.InstanceTenancy.default
host aws.ec2.Vpc.InstanceTenancy.host

Shorthand formats: dedicated or InstanceTenancy.dedicated

Attribute Reference

vpc_id

The ID of the VPC.