From 4ab789f7a4bb07a1c2cb22cc9e4baa7c3bf63c52 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 7 Jul 2022 12:06:59 -0500 Subject: [PATCH 1/2] Functionality to name top (level_zero) pool --- main.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/main.tf b/main.tf index 365cc0b..6ba8718 100644 --- a/main.tf +++ b/main.tf @@ -53,6 +53,7 @@ module "level_zero" { description = var.top_description cidr_authorization_context = var.top_cidr_authorization_context tags = {} + name = var.top_name } } diff --git a/variables.tf b/variables.tf index 5de460c..babbf52 100644 --- a/variables.tf +++ b/variables.tf @@ -55,6 +55,12 @@ variable "top_description" { default = "" } +variable "top_name" { + description = "Name of top-level pool." + type = string + default = "" +} + variable "top_cidr_authorization_context" { description = "A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. Document is not stored in the state file. For more information, refer to https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_ipam_pool_cidr#cidr_authorization_context." type = any From 5173c7d7b1372003f54849baff5a9d4e6086f74d Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 7 Jul 2022 12:12:59 -0500 Subject: [PATCH 2/2] terraform-docs added --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 603f3ec..37adb69 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,7 @@ The IPAM `operating_region` variable must be set for the primary Region in your | [top\_auto\_import](#input\_top\_auto\_import) | `auto_import` setting for top-level pool. | `bool` | `null` | no | | [top\_cidr\_authorization\_context](#input\_top\_cidr\_authorization\_context) | A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP. Document is not stored in the state file. For more information, refer to https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_ipam_pool_cidr#cidr_authorization_context. | `any` | `null` | no | | [top\_description](#input\_top\_description) | Description of top-level pool. | `string` | `""` | no | +| [top\_name](#input\_top\_name) | Name of top-level pool. | `string` | `""` | no | | [top\_ram\_share\_principals](#input\_top\_ram\_share\_principals) | Principals to create RAM shares for top-level pool. | `list(string)` | `null` | no | ## Outputs @@ -134,4 +135,4 @@ The IPAM `operating_region` variable must be set for the primary Region in your | [pools\_level\_1](#output\_pools\_level\_1) | Map of all pools at level 1. | | [pools\_level\_2](#output\_pools\_level\_2) | Map of all pools at level 2. | | [pools\_level\_3](#output\_pools\_level\_3) | Map of all pools at level 3. | - + \ No newline at end of file