Closed MrDrMcCoy closed 1 year ago
@MrDrMcCoy thanks for opening this issue. Could you provide the actual value of "each.value.oidc_issuer_url" passed to terraform to help troubleshoot when the above error occurs?
@sinbai A wise man once told me that by asking the right questions, you're already most of the way to your answer.
We have our Terraform split into multiple states. There's an "infra" state, managing common resources like AKS clusters, and various "tenant" states that manages individual deployments on that infrastructure. The tenant state uses the terraform_remote_state
data source to reference resources in the infra state.
The AKS cluster in the infra state has the following:
module.az_resource_group["dev2"].azurerm_kubernetes_cluster_anark["centralus"].oidc_issuer_url = "https://centralus.oic.prod-aks.azure.com/<redacted>/<redacted>/"
The tenant state, even after running terraform refresh
, has this:
data.terraform_remote_state.infra.outputs.az_resource_groups[var.resource_group].azurerm_kubernetes_cluster_anark["centralus"].oidc_issuer_url = ""
So it would seem that this isn't really an issue with the azurerm
provider, but rather an issue with Terraform itself refusing to pull the latest remote state data. Would you happen to know any tricks for forcing this to update properly?
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.3.7
AzureRM Provider Version
3.41.0
Affected Resource(s)/Data Source(s)
azurerm_federated_identity_credential
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
azurerm_federated_identity_credential
resource should be created with all specified arguments.Actual Behaviour
azurerm_federated_identity_credential
silently dropsissuer
argument and the API responds with an error.Steps to Reproduce
oidc_issuer_enabled
andworkload_identity_enabled
set totrue
.oidc_issuer_url
and the User Assigned Identity.Important Factoids
No response
References
No response