Updates from PR review

This commit is contained in:
John Downs 2022-11-18 12:41:32 +13:00
parent c008240f61
commit eaa4dedbd4
4 changed files with 7 additions and 5 deletions

View File

@ -8,6 +8,7 @@ terraform {
random = { random = {
source = "hashicorp/random" source = "hashicorp/random"
version = "~> 3.4.3"
} }
} }

View File

@ -8,6 +8,7 @@ This template deploys an [Azure Front Door (classic)](https://registry.terraform
| - | - | | - | - |
| `azurerm_resource_group` | The resource group for all the deployed resources. | | `azurerm_resource_group` | The resource group for all the deployed resources. |
| `azurerm_frontdoor` | The Front Door (classic). | | `azurerm_frontdoor` | The Front Door (classic). |
| `random_id` | A random identifier generator to generate a unique Front Door resource name. |
## Variables ## Variables

View File

@ -2,3 +2,7 @@ resource "azurerm_resource_group" "my_resource_group" {
name = var.resource_group_name name = var.resource_group_name
location = var.location location = var.location
} }
resource "random_id" "front_door_name" {
byte_length = 8
}

View File

@ -11,7 +11,3 @@ variable "resource_group_name" {
variable "backend_address" { variable "backend_address" {
type = string type = string
} }
resource "random_id" "front_door_name" {
byte_length = 8
}