-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform plan gen showing changes to all existing records with cloudflare provider version >=4.41.0 #4684
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
|
@jacobbednarz as the bug is fixed in v4.41.0 it should basically accept the existing configuration that has value attribute right? but why is it still showing changes even though nothing changed |
only if you've run an apply since the changes. you'll also want to check your module abstraction to make sure that isn't interfering by not posing through the correct values. |
Confirmation
Terraform and Cloudflare provider version
terraform version : 1.9.8
cloudflare provider version : 4.46.0
Affected resource(s)
cloudflare_record
Terraform configuration files
Link to debug output
******************************* TERRAFORM INIT *******************************
Initializing modules...
Downloading git::https://github.factset.com/neteng/dns-modules.git for cusip-com-a-record...
Downloading git::https://github.factset.com/neteng/dns-modules.git for cusip-com-cname-record...
Downloading git::https://github.factset.com/neteng/dns-modules.git for cusip-com-mx-record...
Downloading git::https://github.factset.com/neteng/dns-modules.git for cusip-com-ns-record...
Downloading git::https://github.factset.com/neteng/dns-modules.git for cusip-com-srv-record...
Downloading git::https://github.factset.com/neteng/dns-modules.git for cusip-com-txt-record...
Initializing the backend...
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Panic output
No response
Expected output
As these records already exist
I expect terraform plan to give - No changes. Your infrastructure matches the configuration.
Actual output
Though there are no changes to the configurations in .tf files the terraform plan gen is still showing changes as below:
module.cusip-com-cname-record.cloudflare_record.cname-record["cusip.com/1/test1._domainkey"] will be updated in-place
~ resource "cloudflare_record" "cname-record" {
id = ""
name = "test1._domainkey"
tags = []
+ value = "target1.amazonses.com"
# (10 unchanged attributes hidden)
}
module.cusip-com-cname-record.cloudflare_record.cname-record["cusip.com/1/test2._domainkey"] will be updated in-place
~ resource "cloudflare_record" "cname-record" {
id = ""
name = "test2._domainkey"
tags = []
+ value = "target2.amazonses.com"
# (10 unchanged attributes hidden)
}
Plan: 0 to add, 2 to change, 0 to destroy.
Steps to reproduce
Additional factoids
This issue is observed only with the terraform cloudflare provider versions >= 4.41.0 . It was working fine until we were using cloudflare provider of version 4.40.0
References
No response
The text was updated successfully, but these errors were encountered: