Skip to content

Commit

Permalink
Fix vpc module
Browse files Browse the repository at this point in the history
  • Loading branch information
posquit0 committed Oct 22, 2023
1 parent ed9d2a1 commit 59815f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/vpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This module creates following resources.
| <a name="input_egress_only_internet_gateway"></a> [egress\_only\_internet\_gateway](#input\_egress\_only\_internet\_gateway) | (Required) The configuration for an Egress-only Internet Gateway of the VPC. Egress-only Internet Gateway is VPC component that allows outbound only communication to the internet over IPv6, and prevents the Internet from initiating an IPv6 connection with your instances. `egress_only_internet_gateway` as defined below.<br> (Optional) `enabled` - Whether to create an egress-only Internet gateway for the VPC. Defaults to `false`.<br> (Optional) `name` - The name of the Egress-only Internet Gateway. Defaults to same name of the VPC. | <pre>object({<br> enabled = optional(bool, false)<br> name = optional(string)<br> })</pre> | `{}` | no |
| <a name="input_internet_gateway"></a> [internet\_gateway](#input\_internet\_gateway) | (Required) The configuration for an Internet Gateway of the VPC. An internet gateway is a virtual router that connects a VPC to the internet. `internet_gateway` as defined below.<br> (Optional) `enabled` - Whether to create an Internet gateway for the VPC. Defaults to `true`.<br> (Optional) `name` - The name of the Internet Gateway. Defaults to same name of the VPC. | <pre>object({<br> enabled = optional(bool, true)<br> name = optional(string)<br> })</pre> | `{}` | no |
| <a name="input_ipv4_cidrs"></a> [ipv4\_cidrs](#input\_ipv4\_cidrs) | (Required) A list of IPv4 CIDR blocks for the VPC. At least one CIDR must be defined. Each block of `ipv4_cidrs` as defined below.<br> (Optional) `type` - Valid values are `MANUAL` and `IPAM_POOL`. Defaults to `MANUAL`.<br> (Optional) `cidr` - The CIDR block for the VPC. CIDR block size must be between /16 and /28.<br> (Optional) `ipam_pool` - The configuration to get an IPv4 CIDR from the IPAM pool to use for the VPC. Required if `type` is `IPAM_POOL`. `ipam_pool` as defined below.<br> (Required) `id` - The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR.<br> (Optional) `netmask_length` - The netmask length of the IPv4 CIDR you want to allocate to this VPC. | <pre>list(object({<br> type = optional(string, "MANUAL")<br> cidr = optional(string)<br> ipam_pool = optional(object({<br> id = string<br> netmask_length = optional(number)<br> }))<br> }))</pre> | `[]` | no |
| <a name="input_ipv6_cidrs"></a> [ipv6\_cidrs](#input\_ipv6\_cidrs) | (Optional) A list of IPv6 CIDR blocks for the VPC. Each block of `ipv6_cidrs` as defined below.<br> (Optional) `type` - Valid values are `AMAZON` and `IPAM_POOL`. Defaults to `AMAZON`.<br> (Optional) `network_border_group` - The name of the network border group. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones. Defaults to the region of the VPC.<br> (Optional) `ipam_pool` - The configuration to get an IPv6 CIDR from the IPAM pool to use for the VPC. Required if `type` is `IPAM_POOL`. `ipam_pool` as defined below.<br> (Required) `id` - The ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR.<br> (Optional) `cidr` - The CIDR block for the VPC. The CIDR can be explicitly set. Required if `netmask_length` is not set and the IPAM pool does not have `allocation_default_netmask` set.<br> (Optional) `netmask_length` - The netmask length of the IPv6 CIDR you want to allocate to this VPC. | <pre>list(object({<br> type = optional(string, "AMAZON")<br> amazon = optional(object({<br> network_border_group = optional(string)<br> }), {})<br> ipam_pool = optional(object({<br> id = string<br> cidr = optional(string)<br> netmask_length = optional(number)<br> }))<br> }))</pre> | `[]` | no |
| <a name="input_ipv6_cidrs"></a> [ipv6\_cidrs](#input\_ipv6\_cidrs) | (Optional) A list of IPv6 CIDR blocks for the VPC. Each block of `ipv6_cidrs` as defined below.<br> (Optional) `type` - Valid values are `AMAZON` and `IPAM_POOL`. Defaults to `AMAZON`.<br> (Optional) `amazon` - The configuration to get the Amazon-provided IPv6 CIDR to use for the VPC. Only used if `type` is `AMAZON`. `amazon` as defined below.<br> (Optional) `network_border_group` - The name of the network border group. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones. Defaults to the region of the VPC.<br> (Optional) `ipam_pool` - The configuration to get an IPv6 CIDR from the IPAM pool to use for the VPC. Required if `type` is `IPAM_POOL`. `ipam_pool` as defined below.<br> (Required) `id` - The ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR.<br> (Optional) `cidr` - The CIDR block for the VPC. The CIDR can be explicitly set. Required if `netmask_length` is not set and the IPAM pool does not have `allocation_default_netmask` set.<br> (Optional) `netmask_length` - The netmask length of the IPv6 CIDR you want to allocate to this VPC. | <pre>list(object({<br> type = optional(string, "AMAZON")<br> amazon = optional(object({<br> network_border_group = optional(string)<br> }), {})<br> ipam_pool = optional(object({<br> id = string<br> cidr = optional(string)<br> netmask_length = optional(number)<br> }))<br> }))</pre> | `[]` | no |
| <a name="input_module_tags_enabled"></a> [module\_tags\_enabled](#input\_module\_tags\_enabled) | (Optional) Whether to create AWS Resource Tags for the module informations. | `bool` | `true` | no |
| <a name="input_network_address_usage_metrics_enabled"></a> [network\_address\_usage\_metrics\_enabled](#input\_network\_address\_usage\_metrics\_enabled) | (Optional) Whether NAU (Network Address Usage) metrics are enabled for the VPC. Defaults to `false`. | `bool` | `false` | no |
| <a name="input_private_hosted_zones"></a> [private\_hosted\_zones](#input\_private\_hosted\_zones) | (Optional) List of private Hosted Zone IDs to associate. | `list(string)` | `[]` | no |
Expand Down
3 changes: 2 additions & 1 deletion modules/vpc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ variable "ipv6_cidrs" {
description = <<EOF
(Optional) A list of IPv6 CIDR blocks for the VPC. Each block of `ipv6_cidrs` as defined below.
(Optional) `type` - Valid values are `AMAZON` and `IPAM_POOL`. Defaults to `AMAZON`.
(Optional) `network_border_group` - The name of the network border group. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones. Defaults to the region of the VPC.
(Optional) `amazon` - The configuration to get the Amazon-provided IPv6 CIDR to use for the VPC. Only used if `type` is `AMAZON`. `amazon` as defined below.
(Optional) `network_border_group` - The name of the network border group. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones. Defaults to the region of the VPC.
(Optional) `ipam_pool` - The configuration to get an IPv6 CIDR from the IPAM pool to use for the VPC. Required if `type` is `IPAM_POOL`. `ipam_pool` as defined below.
(Required) `id` - The ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR.
(Optional) `cidr` - The CIDR block for the VPC. The CIDR can be explicitly set. Required if `netmask_length` is not set and the IPAM pool does not have `allocation_default_netmask` set.
Expand Down

0 comments on commit 59815f9

Please sign in to comment.