diff --git a/README.md b/README.md index 5e65be4..35c41ef 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This module implements the AVM version of the Azure Cache for Redis and supporti The following requirements are needed by this module: -- [terraform](#requirement\_terraform) (>= 1.5.0) +- [terraform](#requirement\_terraform) (~> 1.7) - [azapi](#requirement\_azapi) (~> 1.13, != 1.13.0) @@ -637,6 +637,10 @@ Default: The following outputs are exported: +### [name](#output\_name) + +Description: The name of the redis resource + ### [private\_endpoints](#output\_private\_endpoints) Description: A map of private endpoints. The map key is the supplied input to var.private\_endpoints. The map value is the entire azurerm\_private\_endpoint resource. diff --git a/examples/default/README.md b/examples/default/README.md index a8a00ba..ff57741 100644 --- a/examples/default/README.md +++ b/examples/default/README.md @@ -5,7 +5,7 @@ This deploys the Azure Cache for Redis module in its simplest form. ```hcl terraform { - required_version = ">= 1.3.0" + required_version = "~> 1.7" required_providers { azurerm = { source = "hashicorp/azurerm" @@ -36,7 +36,7 @@ locals { # This allows us to randomize the region for the resource group. module "regions" { source = "Azure/regions/azurerm" - version = ">= 0.3.0" + version = "~> 0.6" } # This allows us to randomize the region for the resource group. @@ -49,7 +49,7 @@ resource "random_integer" "region_index" { # This ensures we have unique CAF compliant names for our resources. module "naming" { source = "Azure/naming/azurerm" - version = ">= 0.3.0" + version = "~> 0.4" } # This is required for resource modules @@ -99,7 +99,7 @@ resource "azurerm_log_analytics_workspace" "this_workspace" { module "default" { source = "../../" # source = "Azure/avm-res-cache-redis/azurerm" - # version = "0.1.0" + # version = "0.1.1" enable_telemetry = var.enable_telemetry name = module.naming.redis_cache.name_unique @@ -149,7 +149,7 @@ module "default" { The following requirements are needed by this module: -- [terraform](#requirement\_terraform) (>= 1.3.0) +- [terraform](#requirement\_terraform) (~> 1.7) - [azurerm](#requirement\_azurerm) (~> 3.105) @@ -212,13 +212,13 @@ Version: Source: Azure/naming/azurerm -Version: >= 0.3.0 +Version: ~> 0.4 ### [regions](#module\_regions) Source: Azure/regions/azurerm -Version: >= 0.3.0 +Version: ~> 0.6 ## Data Collection diff --git a/examples/default/main.tf b/examples/default/main.tf index 001cc38..7b7acc5 100644 --- a/examples/default/main.tf +++ b/examples/default/main.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3.0" + required_version = "~> 1.7" required_providers { azurerm = { source = "hashicorp/azurerm" @@ -30,7 +30,7 @@ locals { # This allows us to randomize the region for the resource group. module "regions" { source = "Azure/regions/azurerm" - version = ">= 0.3.0" + version = "~> 0.6" } # This allows us to randomize the region for the resource group. @@ -43,7 +43,7 @@ resource "random_integer" "region_index" { # This ensures we have unique CAF compliant names for our resources. module "naming" { source = "Azure/naming/azurerm" - version = ">= 0.3.0" + version = "~> 0.4" } # This is required for resource modules @@ -93,7 +93,7 @@ resource "azurerm_log_analytics_workspace" "this_workspace" { module "default" { source = "../../" # source = "Azure/avm-res-cache-redis/azurerm" - # version = "0.1.0" + # version = "0.1.1" enable_telemetry = var.enable_telemetry name = module.naming.redis_cache.name_unique diff --git a/locals.version.tf.json b/locals.version.tf.json index 6d43988..188ca69 100644 --- a/locals.version.tf.json +++ b/locals.version.tf.json @@ -1,5 +1,5 @@ { "locals": { - "module_version": "0.1.0" + "module_version": "0.1.1" } } diff --git a/outputs.tf b/outputs.tf index 5b9f103..ff9b49a 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,3 +1,8 @@ +output "name" { + description = "The name of the redis resource" + value = azurerm_redis_cache.this.name +} + output "private_endpoints" { description = "A map of private endpoints. The map key is the supplied input to var.private_endpoints. The map value is the entire azurerm_private_endpoint resource." value = azurerm_private_endpoint.this diff --git a/terraform.tf b/terraform.tf index f239eac..f6fb10a 100644 --- a/terraform.tf +++ b/terraform.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.5.0" + required_version = "~> 1.7" required_providers { azapi = { source = "Azure/azapi"