Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keeganwitt/da4cfb21f9c20033e763452b58d6424b to your computer and use it in GitHub Desktop.
Save keeganwitt/da4cfb21f9c20033e763452b58d6424b to your computer and use it in GitHub Desktop.
Log output showing how running terraform plan changes the Datadog dashboard ID and URL even with no changes
2022-10-12T10:26:05.047-0400 [INFO] Terraform version: 1.2.5
2022-10-12T10:26:05.047-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.0.0
2022-10-12T10:26:05.047-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.12.0
2022-10-12T10:26:05.047-0400 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-10-12T10:26:05.047-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-10-12T10:26:05.047-0400 [DEBUG] using github.com/zclconf/go-cty v1.10.0
2022-10-12T10:26:05.047-0400 [INFO] Go runtime version: go1.18.1
2022-10-12T10:26:05.047-0400 [INFO] CLI args: []string{"/Users/kwitt/.tfenv/versions/1.2.5/terraform", "plan"}
2022-10-12T10:26:05.047-0400 [DEBUG] Attempting to open CLI config file: /Users/kwitt/.terraformrc
2022-10-12T10:26:05.047-0400 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-10-12T10:26:05.048-0400 [INFO] Loading CLI configuration from /Users/kwitt/.terraform.d/credentials.tfrc.json
2022-10-12T10:26:05.048-0400 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-10-12T10:26:05.048-0400 [DEBUG] ignoring non-existing provider search directory /Users/kwitt/.terraform.d/plugins
2022-10-12T10:26:05.048-0400 [DEBUG] ignoring non-existing provider search directory /Users/kwitt/Library/Application Support/io.terraform/plugins
2022-10-12T10:26:05.048-0400 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2022-10-12T10:26:05.048-0400 [INFO] CLI command args: []string{"plan"}
2022-10-12T10:26:05.059-0400 [DEBUG] Service discovery for terraform.mycompany.tech at https://terraform.mycompany.tech/.well-known/terraform.json
2022-10-12T10:26:05.345-0400 [DEBUG] Retrieve version constraints for service tfe.v2.1 and product terraform
2022-10-12T10:26:06.158-0400 [DEBUG] checking for provisioner in "."
2022-10-12T10:26:06.158-0400 [DEBUG] checking for provisioner in "/Users/kwitt/.tfenv/versions/1.2.5"
2022-10-12T10:26:06.321-0400 [INFO] backend/remote: starting Plan operation
Running plan in the remote backend. Output will stream here. Pressing Ctrl-C
will stop streaming the logs, but will not stop the plan running remotely.
Preparing the remote plan...
To view this run in a browser, visit:
https://terraform.mycompany.tech/app/mycompany/myworkspace/runs/run-KJ2wdU5vQZLqCoh9
Waiting for the plan to start...
Terraform v1.2.8
on linux_amd64
Configuring remote state backend...
Initializing Terraform configuration...
module.dashboard-keegans-test-terraform-dashboard.datadog_dashboard.tfer--dashboard_gcu-ret-4nk: Refreshing state... [id=gzw-6u5-am7]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.dashboard-keegans-test-terraform-dashboard.datadog_dashboard.tfer--dashboard_gcu-ret-4nk will be updated in-place
~ resource "datadog_dashboard" "tfer--dashboard_gcu-ret-4nk" {
id = "gzw-6u5-am7"
~ url = "/dashboard/gzw-6u5-am7/keegans-test-terraform-dashboard" -> "/dashboard/gcu-ret-4nk/keegans-test-terraform-dashboard"
# (7 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
│ Warning: Argument is deprecated
│ with module.dashboard-keegans-test-terraform-dashboard.datadog_dashboard.tfer--dashboard_gcu-ret-4nk,
│ on generated/datadog/dashboards/keegans-test-terraform-dashboard/dashboard.tf line 2, in resource "datadog_dashboard" "tfer--dashboard_gcu-ret-4nk":
│ 3: is_read_only = "false"
│ Prefer using `restricted_roles` to define which roles are required to edit
│ the dashboard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment