akamai / terraform-provider-akamai

Terraform Akamai provider
https://www.terraform.io/docs/providers/akamai/
Mozilla Public License 2.0
109 stars 96 forks source link

DXE-4292 EdgeDNS record TTL is not recognized as changed parameter if it's changed outside of terraform #585

Open martin-simek-gen opened 1 week ago

martin-simek-gen commented 1 week ago

Hi there,

We realized issue regarding TTL parameter for resource akamai_dns_record. If the parameter is changed outside of terraform, e.g. by WEB UI or Akamai API, terraform doesn't recognize changes. This means that terraform has different configuration than the reality is.

Terraform and Akamai Terraform Provider Versions

Akamai provider: the latest release (6.4.0) and all previous one Terraform: v1.9.7 + v1.7.5 Terragrunt version v0.67.14

Affected Resource(s)

Terraform Configuration Files

resource "akamai_dns_record" "txt" {
  name       = "testingi2.workplace.avast.com"
  recordtype = "TXT"
  ttl        = 300
  target     = ["foo"]
}

Expected Behavior

Any difference between real value of TTL and terraform manifest should be changed to terraform value of TTL.

Actual Behavior

If TTL is changed out of terraform, the terraform plan doesn't recognize any change.

Steps to Reproduce

  1. Create any DNS record via terraform with TTL = 300
  2. Change TTL of the record via WEB UI to value 301
  3. Run terraform plan for the record
  4. terraform output: No changes
lsadlon commented 6 days ago

Hi @martin-simek-gen

I was able to reproduce this issue and create internal ticket to fix it. We will inform you about progress.

BR, Lukasz