terraform: unique Azure attestation provider name (#1472)

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-03-21 05:41:48 -04:00 committed by GitHub
parent 3fceb2207d
commit f638812143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ resource "random_password" "initSecret" {
resource "azurerm_attestation_provider" "attestation_provider" { resource "azurerm_attestation_provider" "attestation_provider" {
count = var.create_maa ? 1 : 0 count = var.create_maa ? 1 : 0
# name must be between 3 and 24 characters in length and use numbers and lower-case letters only. # name must be between 3 and 24 characters in length and use numbers and lower-case letters only.
name = format("%sap", replace(var.name, "/[^a-z0-9]/", "")) name = format("constell%s", local.uid)
resource_group_name = var.resource_group resource_group_name = var.resource_group
location = var.location location = var.location
} }