You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"azurerm_key_vault_key""des_key" {
key_opts=[
"decrypt",
"encrypt",
"sign",
"unwrapKey",
"verify",
"wrapKey",
]
key_type="RSA-HSM"key_vault_id=azurerm_key_vault.des_vault.idname="des-key"expiration_date=timeadd("${formatdate("YYYY-MM-DD", timestamp())}T00:00:00Z", "168h")
key_size=2048depends_on=[
azurerm_key_vault_access_policy.current_user
]
lifecycle {
ignore_changes=[expiration_date]
}
}
All examples have this issue.
tfvars variables values
None
Debug Output/Panic Output
current client lacks permissions to read Key Rotation Policy for Key "des-key" ("Vault: (Name \"wecnuw-des-keyvault\" / Resource Group \"01a60adf0558871f-rg\")", Vault url: "https://wecnuw-des-keyvault.vault.azure.net/"), please update this as described here: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_key#example-usage : keyvault.BaseClient#GetKeyRotationPolicy: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="Forbidden" Message="The user, group or application 'appid=xxxx;oid=xxxxx;numgroups=2;iss=https://sts.windows.net/xxxxxx/' does not have keys getrotationpolicy permission on key vault 'wecnuw-des-keyvault;location=eastus'. For help resolving this issue, please see https://go.microsoft.com/fwlink/?linkid=2125287" InnerError={"code":"ForbiddenByPolicy"}
Expected Behaviour
No response
Actual Behaviour
No response
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Greenfield/Brownfield provisioning
greenfield
Terraform Version
1.3.9
Module Version
6.7.0
AzureRM Provider Version
3.46.0
Affected Resource(s)/Data Source(s)
azurerm_key_vault_key
Terraform Configuration Files
tfvars variables values
Debug Output/Panic Output
Expected Behaviour
No response
Actual Behaviour
No response
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: