terraform-azurerm-avm-res-keyvault-vault
terraform-azurerm-avm-res-keyvault-vault copied to clipboard
Use azurerm_key_vault_certificate_contacts instead
See https://github.com/hashicorp/terraform-provider-azurerm/pull/19743 and https://github.com/hashicorp/terraform-provider-azurerm/issues/10256 - it might be more optimal to use azurerm_key_vault_certificate_contacts
to avoid permission problem when initially creating the KV.
ah, nvm, this is of course on the consuming-side of things.
Thanks for this. We will consider the implementation detail.
We do not support access policies in the module as yet, preferring Azure role assignments.
In your use case, how would the above affect the use of the dedicated contact resource?
you get a permission denied because the IAM has not been assigned yet - so instead you do this sequence:
- create KV
- create IAM
- create contact resource, depending on 2)
Thanks. Will swap it out and make dependent on the role assignments
could this be merged and released?
Hi, I've put this in another PR that's challenging at the moment.
I can pull it out.
@matt-FFFFFF fix in #39