--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_ec2_subnet Resource - terraform-provider-awscc" subcategory: "" description: |- Resource Type definition for AWS::EC2::Subnet --- # awscc_ec2_subnet (Resource) Resource Type definition for AWS::EC2::Subnet <!-- schema generated by tfplugindocs --> ## Schema ### Required - `vpc_id` (String) ### Optional - `assign_ipv_6_address_on_creation` (Boolean) - `availability_zone` (String) - `availability_zone_id` (String) - `cidr_block` (String) - `enable_dns_64` (Boolean) - `ipv_6_cidr_block` (String) - `ipv_6_native` (Boolean) - `map_public_ip_on_launch` (Boolean) - `outpost_arn` (String) - `private_dns_name_options_on_launch` (Attributes) (see [below for nested schema](#nestedatt--private_dns_name_options_on_launch)) - `tags` (Attributes List) (see [below for nested schema](#nestedatt--tags)) ### Read-Only - `id` (String) Uniquely identifies the resource. - `ipv_6_cidr_blocks` (List of String) - `network_acl_association_id` (String) - `subnet_id` (String) <a id="nestedatt--private_dns_name_options_on_launch"></a> ### Nested Schema for `private_dns_name_options_on_launch` Optional: - `enable_resource_name_dns_a_record` (Boolean) - `enable_resource_name_dns_aaaa_record` (Boolean) - `hostname_type` (String) <a id="nestedatt--tags"></a> ### Nested Schema for `tags` Optional: - `key` (String) - `value` (String) ## Import Import is supported using the following syntax: ```shell $ terraform import awscc_ec2_subnet.example <resource ID> ```