Secret_permissions of azurerm becomes case-sensitive?

Hello,

I got the following error in terraform apply to manage an Azure Key Vault Access Policy, and I take this message that it complains the value “set” is given in the terraform code, like secret_permissions = [ "set" ], while “Set” is expected.

Error message:

Error: expected secret_permissions.0 to be one of [Backup Delete Get List Purge Recover Restore Set], got set
 
 on key-vault.tf line 17, in resource "azurerm_key_vault_access_policy" "<resource_name>":
  17:     "set",

However, the error was not caught in the previous run when using hashicorp/azurerm v2.99.0 or lower, and it occurs for the first time when using v3.0.1.
Therefore, I wonder whether the secret_permissions becomes case-sensitive in this new version, or if there is another cause of the error.
Could I get your insights on it?

Thank you

1 Like