Closed monty124 closed 1 month ago
Hi there,
Are you using the latest version of the module?
Hi @matt-FFFFFF
Thanks for the reply!, my apologies I thought I added this to the bug submission, looks like I'm using the latest version.
modules.json:
"Source":"registry.terraform.io/Azure/avm-res-keyvault-vault/azurerm","Version":"0.9.1","Dir":".terraform/modules/azure_keyvault"
the only other version block i have in my main.tf is this:
terraform {
required_version = "~> 1.9"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.98.0"
}
It looks like I've found the issue, its an azurerm issue and not the module
I've bumped this to 4.2 and its now working as expected,
terraform {
required_version = "~> 1.9"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=4.2.0"
}
}
> terraform plan
module.azure_keyvault.time_sleep.wait_for_rbac_before_contact_operations[0]: Refreshing state... [id=2024-09-19T03:43:27Z]
....
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
note breaking changes for azurerm >=4.0 kids!
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide
apologies for any inconvenience @matt-FFFFFF
Check for previous/existing GitHub issues
Issue Type?
Bug
(Optional) Module Version
No response
(Optional) Correlation Id
No response
Description
Certificate contacts seem to be requesting destruction and creation on successive terraform plan / apply's
module definition:
on apply resource is created successfully however subsequent plans state that the resource is updated removing the contact:
after applying this the contact is indeed deleted and issuing a plan again you get a request to add a contact:
apply this and the contact is created again
performing another plan the loop starts again when the expected result should be configuration matches no changes needed