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

Regions in record resource are modified on every plan/apply #314

Closed
JanBerktold opened this issue Jun 12, 2024 · 0 comments · Fixed by #315
Closed

Regions in record resource are modified on every plan/apply #314

JanBerktold opened this issue Jun 12, 2024 · 0 comments · Fixed by #315

Comments

@JanBerktold
Copy link
Contributor

JanBerktold commented Jun 12, 2024

Terraform Version

Terraform v1.8.5
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v5.52.0
+ provider registry.terraform.io/ns1-terraform/ns1 v2.2.2

Affected Resource(s)

Please list the resources as a list, for example:

  • ns1_record

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Debug Output

      ~ regions {
          ~ meta = {
              ~ "georegion" = "EUROPE" -> "US-CENTRAL,US-WEST,US-EAST"
            }
          ~ name = "EU" -> "NA"
        }
      ~ regions {
          ~ meta = {
              ~ "country" = "RU" -> "CA,MX,US"
            }
          ~ name = "EU-RU" -> "NA-US-CA-MX"
        }
      ~ regions {
          ~ meta = {
              ~ "georegion" = "US-CENTRAL,US-WEST,US-EAST" -> "EUROPE"
            }
          ~ name = "NA" -> "EU"
        }
      ~ regions {
          ~ meta = {
              ~ "country" = "CA,MX,US" -> "RU"
            }
          ~ name = "NA-US-CA-MX" -> "EU-RU"
        }
      ~ regions {
          ~ meta = {
              + "georegion" = "SOUTH-AMERICA"
            }
          ~ name = "REST" -> "SA"
        }
      ~ regions {
          ~ meta = {
              ~ "georegion" = "SOUTH-AMERICA" -> null
            }
          ~ name = "SA" -> "REST"
        }

Expected Behavior

Without any change in the config, there shouldn't be any delta shown in the plan.

Actual Behavior

On every single plan, the order of the regions changes and hence forces us to do an apply. However, after this apply, we still see the same diff.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant