chore(terraform): update to be deprecated syntax

This commit is contained in:
Julie Ng 2021-03-18 15:25:43 +01:00
Родитель 02524a6399
Коммит ef417c1442
3 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -3,7 +3,7 @@
resource "azuread_group" "groups" {
for_each = var.groups
name = "demo-${each.value}-${local.suffix}"
display_name = "demo-${each.value}-${local.suffix}"
prevent_duplicate_names = true
}

Просмотреть файл

@ -29,7 +29,6 @@ resource "azurerm_key_vault" "kv" {
resource_group_name = azurerm_resource_group.workspace.name
enabled_for_disk_encryption = true
tenant_id = local.client_tenant_id
soft_delete_enabled = true # false is deprecated
soft_delete_retention_days = 7 # minimum
purge_protection_enabled = false # so we can fully delete it
sku_name = "standard"

Просмотреть файл

@ -4,8 +4,7 @@
# SP - Workspace (scoped to resource group)
resource "azuread_application" "workspace_sp" {
name = "${local.name}-rg-sp"
display_name = "${local.name}-rg-sp"
depends_on = [
azurerm_resource_group.workspace
]
@ -25,7 +24,7 @@ resource "azuread_service_principal" "workspace_sp" {
# SP - Key Vault Reader (just for Azure Pipeline)
resource "azuread_application" "kv_reader_sp" {
name = "${local.name}-kv-reader-sp"
display_name = "${local.name}-kv-reader-sp"
}
resource "azuread_application_password" "kv_reader_sp_secret" {