skip to Main Content

is map of string with xx elements The given key does not identify an element in this collection value – Amazon web services

I have this in my tf file existing_alerting_sns_topic = "arn:aws:sns:${var.aws_region}:${module.account.id[“ab-cd”]}:cd-prod-${var.aws_region}-slack-notifier-infrastructure-alerts" but I don't have anything specified in my variable.tf yet. when I run the terraform plan I do see the below error. Do I need to specify anything like map(any)…

VIEW QUESTION

Azure Container Apps environment creation fails due to error ManagedEnvironmentResourceGroupDisallowedByPolicy when adding a VNET integration

I'm trying to create an Azure Container Apps Environment through the AzAPI provider on Terraform. The configuration I'm using is the following: resource "azapi_resource" "aca_env" { type = "Microsoft.App/managedEnvironments@2022-03-01" parent_id = azurerm_resource_group.rg.id location = azurerm_resource_group.rg.location name = var.ACA_ENV_NAME body =…

VIEW QUESTION

How to assign Global Administrator role to a Service Principal in Azure?

I can assign the owner role to a service principal # Assign Owner Permission to the Service Principal resource "azurerm_role_assignment" "sp-tenant-global-admin-role-assignment" { scope = "subscriptions/${data.azurerm_client_config.current.subscription_id}" role_definition_name = "Owner" principal_id = azuread_service_principal.sp-tenant-global-admin.object_id } However, I want to assign the Global Administrator…

VIEW QUESTION
Back To Top
Search