terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
azurerm_firewall_policy requires tag keys to be lowercase
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and AzureRM Provider) Version
Terraform v0.13.5
- provider registry.terraform.io/hashicorp/azurerm v2.38.0
Affected Resource(s)
azurerm_firewall_policy
Terraform Configuration Files
resource "azurerm_firewall_policy" "xxxxxx" {
[...]
tags = { Xxxxxxxx = "xxx" }
)
}
Debug Output
Error: a tag key "Xxxxxxxx" expected to be all in lowercase
on xxxxxxxx.tf line xx, in resource "azurerm_firewall_policy" "xxxxxxx":
xx: resource "azurerm_firewall_policy" "xxxxxxx" {
Expected behaviour
Do not require tag keys to be lowercase.
Awaiting fix from Azure team: Azure/azure-rest-api-specs#11899
I am also seeing this for azurerm_data_share_account, not sure if it is related or I need to open a separate issue.
bump .. just hit this on latest version = v1.0.11
bump .... experienced this on terraform version 1.1.5, any update on this?
Experiencing this with v1.1.5 & azurerm v2.94.0
Any hope to release a fix for this bug? Terraform v1.1.5 - azurerm v2.98.0
Is there any update on this? This issue has been raised long time ago...
I encountered the same problem and I was able to fix it using below. tags = tomap({for key, val in var.tags: lower(key)=>lower(val)}) I hope this helps you
Thank you @falowomi.
We could remove lower from the value: tags = tomap({for key, val in var.tags: lower(key)=>val})
Annoying because Terraform wants to remove the existing tags and replace them with lowercase, even using the workaround above. I added a lifecycle to ignore changes to the tags, and all is good.