diff --git a/modules/subnet-group/README.md b/modules/subnet-group/README.md
index f21ad1a..44309eb 100644
--- a/modules/subnet-group/README.md
+++ b/modules/subnet-group/README.md
@@ -53,7 +53,7 @@ This module creates following resources.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [name](#input\_name) | (Required) The name of the subnet group. | `string` | n/a | yes |
-| [subnets](#input\_subnets) | (Required) A configuration of subnets to create in the subnet group. Each block of `subnets` as defined below.
(Optional) `type` - The type of subnet. Valid values are `DUALSTACK` and `IPV6`. Defaults to `DUALSTACK`.
(Optional) `availability_zone` - The availability zone of the subnet. If the value of `availability_zone` and `availability_zone_id` are both not provided, the subnet will be created in random availability zone.
(Optional) `availability_zone_id` - The availability zone ID of the subnet. If the value of `availability_zone` and `availability_zone_id` are both not provided, the subnet will be created in random availability zone. |
map(object({| n/a | yes | +| [subnets](#input\_subnets) | (Required) A configuration of subnets to create in the subnet group. Each block of `subnets` as defined below.
type = optional(string, "DUALSTACK")
availability_zone = optional(string)
availability_zone_id = optional(string)
ipv4_cidr = optional(string)
ipv6_cidr = optional(string)
}))
map(object({| n/a | yes | | [vpc\_id](#input\_vpc\_id) | (Required) The ID of the VPC which the subnet group belongs to. | `string` | n/a | yes | | [customer\_owned\_ipv4\_address\_assignment](#input\_customer\_owned\_ipv4\_address\_assignment) | (Optional) A configuration for Customer-owned IPv4 address assignment. `customer_owned_ipv4_address_assignment` as defined below.
type = optional(string, "DUALSTACK")
availability_zone = optional(string)
availability_zone_id = optional(string)
ipv4_cidr = optional(string)
ipv6_cidr = optional(string)
}))
object({| `{}` | no | | [dax\_subnet\_group](#input\_dax\_subnet\_group) | (Optional) A configuration of DAX Subnet Group. `dax_subnet_group` as defined below.
enabled = optional(bool, false)
outpost = optional(string)
pool = optional(string)
})
object({| `{}` | no | diff --git a/modules/subnet-group/variables.tf b/modules/subnet-group/variables.tf index 3fe912a..aa12dca 100644 --- a/modules/subnet-group/variables.tf +++ b/modules/subnet-group/variables.tf @@ -16,6 +16,8 @@ variable "subnets" { (Optional) `type` - The type of subnet. Valid values are `DUALSTACK` and `IPV6`. Defaults to `DUALSTACK`. (Optional) `availability_zone` - The availability zone of the subnet. If the value of `availability_zone` and `availability_zone_id` are both not provided, the subnet will be created in random availability zone. (Optional) `availability_zone_id` - The availability zone ID of the subnet. If the value of `availability_zone` and `availability_zone_id` are both not provided, the subnet will be created in random availability zone. + (Optional) `ipv4_cidr` - The IPv4 CIDR block for the subnet. + (Optional) `ipv6_cidr` - The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length. EOF type = map(object({ type = optional(string, "DUALSTACK")
enabled = optional(bool, false)
name = optional(string)
description = optional(string, "Managed by Terraform.")
})