Optional
Readonly
assign(OPTIONAL) Indicates whether a network interface created in this subnet receives an IPv6 address on creation.
Optional
Readonly
availabilityThe Availability Zone (AZ) the subnet resides in.
CAUTION: changing this property after initial deployment will cause a subnet recreation. Please be aware that any downstream dependencies may cause this property update to fail.
Include only the letter of the AZ name (i.e. 'a' for 'us-east-1a') to have the subnet created in a specific AZ. Use an integer (i.e. 1) for a physical mapping ID to an AZ. Please reference the documentation Availability Zone IDs for your AWS resources for more information.
Optional
Readonly
enable(OPTIONAL) Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
For more information, see DNS64 and NAT64 in the Amazon Virtual Private Cloud User Guide.
Optional
Readonly
ipamThe IPAM pool configuration for the subnet.
Optional
Readonly
ipv4The IPv4 CIDR block to associate with the subnet.
Optional
Readonly
ipv6(OPTIONAL) The IPv6 CIDR block to associate with the subnet.
Use IPv6 CIDR notation, i.e. fd00::/64. Possible IPv6 netmask lengths are between /44 and /64 in increments of /4.
Note: Only providing an IPv6 CIDR block or IPv6 IPAM allocation will create an IPv6-only subnet. You must also specify an IPv4 CIDR or IPAM allocation to create a dual-stack subnet. See Subnet basics for more information.
Optional
Readonly
localThe Zone ID of the local zone.
Optional
Readonly
map(OPTIONAL) Configure automatic mapping of public IPs.
Readonly
nameA friendly name for the VPC subnet.
Optional
Readonly
outpost(OPTIONAL) The friendly name for the outpost to attach to the subnet
Optional
Readonly
private(OPTIONAL) Private DNS name options for the subnet.
Optional
Readonly
routeThe friendly name of the route table to associate with the subnet.
Optional
Readonly
share(OPTIONAL) Resource Access Manager (RAM) share targets.
NOTE: When sharing subnets, security groups created in this VPC will be automatically replicated to the share target accounts. If tags are configured for the VPC and/or subnet, they are also replicated.
Targets can be account names and/or organizational units.
Optional
Readonly
tags(OPTIONAL) An array of tag objects for the VPC subnet.
NetworkConfig / VpcConfig | VpcTemplatesConfig / SubnetConfig
Virtual Private Cloud (VPC) subnet configuration.
Description
Use this configuration to define subnets for your VPC. A subnet is a range of IP addresses in your VPC that can be used to create AWS resources, such as EC2 instances.
Example
Static IPv4 CIDR:
Using the Physical ID for an Availability Zone
IPAM allocation:
Static IPv6 CIDR: