mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
terraform: valid Azure attestation provider name (#1465)
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
1b12147d83
commit
05f6d1dc65
1 changed files with 3 additions and 2 deletions
|
@ -42,8 +42,9 @@ resource "random_password" "initSecret" {
|
|||
}
|
||||
|
||||
resource "azurerm_attestation_provider" "attestation_provider" {
|
||||
count = var.create_maa ? 1 : 0
|
||||
name = format("%sap", var.name)
|
||||
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 = format("%sap", replace(var.name, "/[^a-z0-9]/", ""))
|
||||
resource_group_name = var.resource_group
|
||||
location = var.location
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue