We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using azapi 2.0.0-beta.
It is updating the order of the identity_ids array, which I didn't change in the .tf file. Configuration:
identity_ids
.tf
resource "azapi_resource" "ai_service" { type = "Microsoft.App/containerApps@2024-03-01" name = "<NAME>" location = module.consts.location parent_id = var.resource_group_id identity { type = "UserAssigned" identity_ids = [var.acr_umi_id, azurerm_user_assigned_identity.kv_access_identity.id] } body = { properties = { environmentId = var.ca_env_id configuration = { activeRevisionsMode = "Single" registries = [{ server = var.acr_server identity = var.acr_umi_id }] } template = { terminationGracePeriodSeconds = 15 scale = { minReplicas = 0 maxReplicas = 1 } serviceBinds = [{ name = "postgresql" serviceId = var.postgresql_app_id }] containers = [{ name = local.container_name image = "${var.acr_server}/ai_service:${var.rs_version}" }] } } } }
Check identify.identify_ids:
identify.identify_ids
# module.ai_service_container_app.azapi_resource.ai_service will be updated in-place ~ resource "azapi_resource" "ai_service" { ~ body = { ~ properties = { ~ configuration = { ~ ingress = { + transport = "tcp" # (3 unchanged attributes hidden) } # (3 unchanged attributes hidden) } # (2 unchanged attributes hidden) } } id = "/subscriptions/<SUBS_ID>/resourceGroups/<RG>/providers/Microsoft.App/containerApps/<NAME>" name = "<NAME>" ~ output = {} -> (known after apply) # (6 unchanged attributes hidden) ~ identity { ~ identity_ids = [ - "/subscriptions/<SUBS_ID>/resourceGroups/<RG>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<KV_NAME>", "/subscriptions/<SUBS_ID>/resourceGroups/<RG>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<ACR_NAME>", + "/subscriptions/<SUBS_ID>/resourceGroups/<RG>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<KV_NAME>", ] + principal_id = (known after apply) + tenant_id = (known after apply) # (1 unchanged attribute hidden) } }
resource "azapi_resource" "ai_service" { ... lifecycle { ignore_changes = [ identity, ] } }
The text was updated successfully, but these errors were encountered:
Perhaps identity_ids should be a set, rather than a list
Sorry, something went wrong.
Here, this should be a set I think:
terraform-provider-azapi/internal/services/azapi_resource.go
Line 329 in 4685e2d
No branches or pull requests
I'm using azapi 2.0.0-beta.
It is updating the order of the
identity_ids
array, which I didn't change in the.tf
file. Configuration:Plan output
Check
identify.identify_ids
:Quickfix to stop updating
The text was updated successfully, but these errors were encountered: