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

Diff is not shown in case of manual changes outside of terraform #241

Open
pwilczynskiclearcode opened this issue Oct 4, 2023 · 0 comments

Comments

@pwilczynskiclearcode
Copy link

When I call TF_LOG=debug terraform plan

I can see that provider/terraform detects manual changes as it's in the debug logs:

      - .api_data["OriginHostHeader"]: was cty.StringVal("a-bucket-com.storage.googleapis.com"), but now cty.StringVal("b-bucket-com.storage.googleapis.com")

but it doesn't appear in the plan output

No changes. Your infrastructure matches the configuration.

My terraform config:

provider "restapi" {
  create_returns_object = true
  debug                 = true
  headers = {
    "AccessKey"    = var.bunny_access_key
    "Content-Type" = "application/json"
  }
  update_method        = "POST"
  uri                  = "https://api.bunny.net/"
  write_returns_object = true
}
resource "restapi_object" "pull-zone" {
  create_path = "/pullzone/"
  data = jsonencode({
    Name             = "my-unique-name"
    OriginUrl        =  "http://a-bucket-com.storage.googleapis.com"
    OriginHostHeader = "a-bucket-com.storage.googleapis.com"
  })
  debug = true
  id_attribute = "Id"
  path         = "/pullzone/"
  read_path    = "/pullzone/{id}"
  update_path  = "/pullzone/{id}"
}
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

No branches or pull requests

1 participant