Skip to content
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

cloudflare_record resource shows changes for SRV data block when no changes are made #4216

Closed
3 tasks done
waltervargas opened this issue Oct 5, 2024 · 6 comments
Closed
3 tasks done
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log.

Comments

@waltervargas
Copy link

Confirmation

  • This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
  • I have searched the issue tracker and my issue isn't already found.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

❯ terraform -v 
Terraform v1.9.5
on linux_amd64
+ provider registry.terraform.io/cloudflare/cloudflare v4.43.0

Your version of Terraform is out of date! The latest version
is 1.9.7. You can update by downloading from https://www.terraform.io/downloads.html

Affected resource(s)

cloudflare_record

Terraform configuration files

resource "cloudflare_record" "terraform_managed_resource_2e8d68069b612c72a0b4ada8fab87d77" {
  name     = "_submissions._tcp"
  priority = 0
  proxied  = false
  ttl      = 3600
  type     = "SRV"
  zone_id  = local.zone_id
  data {
    name     = local.root_domain
    port     = 465
    priority = 0
    proto    = "_tcp"
    service  = "_submissions"
    target   = local.root_domain
    weight   = 1
  }
}

Link to debug output

https://gist.github.com/waltervargas/8a576774c8daa95fc27da4e67e801a4d

Panic output

No response

Expected output

No diff when using data block for cloudflare_record resource

Actual output

terraform show diff and changes to apply even when no code changes

Steps to reproduce

  1. apply a cloudflare_record resource with data block for a SRV type
  2. plan
  3. see the diff

Additional factoids

No response

References

No response

@waltervargas waltervargas added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Oct 5, 2024
Copy link
Contributor

github-actions bot commented Oct 5, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. label Oct 5, 2024
@waltervargas
Copy link
Author

Should I invest time in implementing a fix or is this something you guys have already under your roadmap?

@jacobbednarz
Copy link
Member

have you seen the deprecation notice for this? https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2024-05-31

@jacobbednarz
Copy link
Member

you haven't provided the actual diff you are seeing however i suspect this is the cause. in which case, this won't be changed as it is intentional.

@waltervargas
Copy link
Author

have you seen the deprecation notice for this? https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2024-05-31

No, I haven't seen it, but thanks for sharing.

@waltervargas waltervargas closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2024
@rquadling
Copy link

Why is this deprecation not being reported as part of terraform validation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log.
Projects
None yet
Development

No branches or pull requests

3 participants