
Adjust code file's style. Add `numeric = false` for `random_string.name` in `201-mysql-fs-db` module as the name is used as `azurerm_mysql_flexible_server.default`'s `administrator_login` and the login name doesn't support a name start with number. Add minimum constraints for `random_password.password` in `201-mysql-fs-db` module as the password required a minimum complexity.
15 lines
523 B
HCL
15 lines
523 B
HCL
resource "random_pet" "rg_name" {
|
|
prefix = var.resource_group_name_prefix
|
|
}
|
|
|
|
resource "azurerm_resource_group" "rg" {
|
|
location = var.resource_group_location
|
|
name = random_pet.rg_name.id
|
|
}
|
|
|
|
resource "azurerm_attestation_provider" "corp_attestation" {
|
|
location = azurerm_resource_group.rg.location
|
|
name = var.attestation_provider_name
|
|
resource_group_name = azurerm_resource_group.rg.name
|
|
policy_signing_certificate_data = file(var.policy_file)
|
|
} |