Skip to content

Instantly share code, notes, and snippets.

@oogali
Created October 21, 2019 19:45
Show Gist options
  • Save oogali/1e230933e1200aa2aeb50d249830a509 to your computer and use it in GitHub Desktop.
Save oogali/1e230933e1200aa2aeb50d249830a509 to your computer and use it in GitHub Desktop.
NS1 Provider, Unwanted Changes
2019/10/21 15:40:07 [INFO] Terraform version: 0.12.12
2019/10/21 15:40:07 [INFO] Go runtime version: go1.13.1
2019/10/21 15:40:07 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan", "-out", "ns1.plan"}
2019/10/21 15:40:07 [DEBUG] Attempting to open CLI config file: /Users/sandbox/.terraformrc
2019/10/21 15:40:07 Loading CLI configuration from /Users/sandbox/.terraformrc
2019/10/21 15:40:07 [DEBUG] checking for credentials in "/Users/sandbox/.terraform.d/plugins"
2019/10/21 15:40:07 [DEBUG] checking for credentials in "/Users/sandbox/.terraform.d/plugins/darwin_amd64"
2019/10/21 15:40:07 [INFO] CLI command args: []string{"plan", "-out", "ns1.plan"}
2019/10/21 15:40:07 [DEBUG] New state was assigned lineage "50b1ec8e-f6df-aa86-29cd-ae51757a5b07"
2019/10/21 15:40:07 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2019/10/21 15:40:07 [TRACE] Meta.Backend: instantiated backend of type <nil>
2019/10/21 15:40:07 [DEBUG] checking for provider in "."
2019/10/21 15:40:07 [DEBUG] checking for provider in "/usr/local/bin"
2019/10/21 15:40:07 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2019/10/21 15:40:07 [DEBUG] found provider "terraform-provider-ns1_v1.6.0_x4"
2019/10/21 15:40:07 [DEBUG] checking for provider in "/Users/sandbox/.terraform.d/plugins"
2019/10/21 15:40:07 [DEBUG] checking for provider in "/Users/sandbox/.terraform.d/plugins/darwin_amd64"
2019/10/21 15:40:07 [WARN] found legacy provider "terraform-provider-marathon"
2019/10/21 15:40:07 [DEBUG] found valid plugin: "marathon", "0.0.0", "/Users/sandbox/.terraform.d/plugins/darwin_amd64/terraform-provider-marathon"
2019/10/21 15:40:07 [DEBUG] found valid plugin: "ns1", "1.6.0", "/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4"
2019/10/21 15:40:07 [DEBUG] checking for provisioner in "."
2019/10/21 15:40:07 [DEBUG] checking for provisioner in "/usr/local/bin"
2019/10/21 15:40:07 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64"
2019/10/21 15:40:07 [DEBUG] checking for provisioner in "/Users/sandbox/.terraform.d/plugins"
2019/10/21 15:40:07 [DEBUG] checking for provisioner in "/Users/sandbox/.terraform.d/plugins/darwin_amd64"
2019/10/21 15:40:07 [INFO] backend/local: starting Plan operation
2019-10-21T15:40:07.400-0400 [INFO] plugin: configuring client automatic mTLS
2019-10-21T15:40:07.437-0400 [DEBUG] plugin: starting plugin: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 args=[/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4]
2019-10-21T15:40:07.440-0400 [DEBUG] plugin: plugin started: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 pid=50142
2019-10-21T15:40:07.440-0400 [DEBUG] plugin: waiting for RPC address: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4
2019-10-21T15:40:07.454-0400 [INFO] plugin.terraform-provider-ns1_v1.6.0_x4: configuring server automatic mTLS: timestamp=2019-10-21T15:40:07.454-0400
2019-10-21T15:40:07.494-0400 [DEBUG] plugin: using plugin: version=5
2019-10-21T15:40:07.494-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: plugin address: address=/var/folders/5n/l0l48n713gsfp9f8_86q94_h0000gn/T/plugin596181581 network=unix timestamp=2019-10-21T15:40:07.494-0400
2019-10-21T15:40:07.583-0400 [DEBUG] plugin: plugin process exited: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 pid=50142
2019-10-21T15:40:07.583-0400 [DEBUG] plugin: plugin exited
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "output.ns-servers" references: [ns1_zone.zone]
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "provider.ns1" references: []
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_user.test" references: [ns1_team.test-team]
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_zone.zone" references: []
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_record.localhost" references: [ns1_zone.zone ns1_zone.zone]
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_team.test-team" references: []
2019/10/21 15:40:07 [DEBUG] Starting graph walk: walkValidate
2019-10-21T15:40:07.586-0400 [INFO] plugin: configuring client automatic mTLS
2019-10-21T15:40:07.624-0400 [DEBUG] plugin: starting plugin: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 args=[/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4]
2019-10-21T15:40:07.627-0400 [DEBUG] plugin: plugin started: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 pid=50143
2019-10-21T15:40:07.627-0400 [DEBUG] plugin: waiting for RPC address: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4
2019-10-21T15:40:07.641-0400 [INFO] plugin.terraform-provider-ns1_v1.6.0_x4: configuring server automatic mTLS: timestamp=2019-10-21T15:40:07.641-0400
2019-10-21T15:40:07.684-0400 [DEBUG] plugin: using plugin: version=5
2019-10-21T15:40:07.684-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: plugin address: network=unix address=/var/folders/5n/l0l48n713gsfp9f8_86q94_h0000gn/T/plugin060332938 timestamp=2019-10-21T15:40:07.684-0400
2019-10-21T15:40:07.774-0400 [DEBUG] plugin: plugin process exited: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 pid=50143
2019-10-21T15:40:07.774-0400 [DEBUG] plugin: plugin exited
2019/10/21 15:40:07 [INFO] backend/local: plan calling Refresh
2019/10/21 15:40:07 [INFO] terraform: building graph: GraphTypeRefresh
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
2019/10/21 15:40:07 [DEBUG] ProviderTransformer: "ns1_record.localhost" (*terraform.NodeRefreshableManagedResource) needs provider.ns1
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_user.test" references: [ns1_team.test-team]
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_zone.zone" references: []
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_record.localhost" references: [ns1_zone.zone ns1_zone.zone]
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "output.ns-servers" references: [ns1_zone.zone]
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "provider.ns1" references: []
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_team.test-team" references: []
2019-10-21T15:40:07.777-0400 [INFO] plugin: configuring client automatic mTLS
2019-10-21T15:40:07.816-0400 [DEBUG] plugin: starting plugin: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 args=[/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4]
2019-10-21T15:40:07.819-0400 [DEBUG] plugin: plugin started: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 pid=50148
2019-10-21T15:40:07.819-0400 [DEBUG] plugin: waiting for RPC address: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4
2019-10-21T15:40:07.834-0400 [INFO] plugin.terraform-provider-ns1_v1.6.0_x4: configuring server automatic mTLS: timestamp=2019-10-21T15:40:07.834-0400
2019-10-21T15:40:07.878-0400 [DEBUG] plugin: using plugin: version=5
2019-10-21T15:40:07.878-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: plugin address: address=/var/folders/5n/l0l48n713gsfp9f8_86q94_h0000gn/T/plugin369181907 network=unix timestamp=2019-10-21T15:40:07.878-0400
2019-10-21T15:40:07.961-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: 2019/10/21 15:40:07 [INFO] NS1 Client configured for Endpoint: https://api.nsone.net/v1/
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_zone.zone" references: []
2019/10/21 15:40:07 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2019/10/21 15:40:07 [TRACE] Executing graph transform *terraform.RootTransformer
2019/10/21 15:40:07 [DEBUG] ReferenceTransformer: "ns1_team.test-team" references: []
ns1_zone.zone: Refreshing state... [id=...5873]
ns1_team.test-team: Refreshing state... [id=...cd2d]
2019/10/21 15:40:08 [DEBUG] ReferenceTransformer: "ns1_record.localhost" references: []
2019/10/21 15:40:08 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
ns1_record.localhost: Refreshing state... [id=...fbc7]
2019/10/21 15:40:08 [DEBUG] ReferenceTransformer: "ns1_user.test" references: []
2019/10/21 15:40:08 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
ns1_user.test: Refreshing state... [id=testing_org]
2019-10-21T15:40:08.934-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: 2019/10/21 15:40:08 Got back from ns1 answers: [127.0.0.1]
2019-10-21T15:40:08.934-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: 2019/10/21 15:40:08 got meta: &{<nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil>}
2019-10-21T15:40:08.934-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: 2019/10/21 15:40:08 map[]
2019-10-21T15:40:08.934-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: 2019/10/21 15:40:08 Setting answers [map[answer:127.0.0.1 meta:map[]]]
2019-10-21T15:40:09.065-0400 [DEBUG] plugin: plugin process exited: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 pid=50148
2019-10-21T15:40:09.065-0400 [DEBUG] plugin: plugin exited
2019/10/21 15:40:09 [INFO] backend/local: plan calling Plan
2019/10/21 15:40:09 [INFO] terraform: building graph: GraphTypePlan
------------------------------------------------------------------------
2019/10/21 15:40:09 [DEBUG] ProviderTransformer: "ns1_zone.zone" (*terraform.NodePlannableResource) needs provider.ns1
2019/10/21 15:40:09 [TRACE] ProviderTransformer: exact match for provider.ns1 serving ns1_record.localhost
2019/10/21 15:40:09 [DEBUG] ProviderTransformer: "ns1_record.localhost" (*terraform.NodePlannableResource) needs provider.ns1
2019/10/21 15:40:09 [TRACE] ProviderTransformer: exact match for provider.ns1 serving ns1_team.test-team
2019/10/21 15:40:09 [DEBUG] ProviderTransformer: "ns1_team.test-team" (*terraform.NodePlannableResource) needs provider.ns1
2019/10/21 15:40:09 [DEBUG] ProviderTransformer: "ns1_user.test" (*terraform.NodePlannableResource) needs provider.ns1
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "ns1_zone.zone" references: []
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "ns1_record.localhost" references: [ns1_zone.zone ns1_zone.zone]
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "ns1_team.test-team" references: []
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "ns1_user.test" references: [ns1_team.test-team]
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "output.ns-servers" references: [ns1_zone.zone]
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "provider.ns1" references: []
2019/10/21 15:40:09 [DEBUG] Starting graph walk: walkPlan
2019-10-21T15:40:09.069-0400 [INFO] plugin: configuring client automatic mTLS
2019-10-21T15:40:09.109-0400 [DEBUG] plugin: starting plugin: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 args=[/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4]
2019-10-21T15:40:09.113-0400 [DEBUG] plugin: plugin started: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 pid=50263
2019-10-21T15:40:09.113-0400 [DEBUG] plugin: waiting for RPC address: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4
2019-10-21T15:40:09.127-0400 [INFO] plugin.terraform-provider-ns1_v1.6.0_x4: configuring server automatic mTLS: timestamp=2019-10-21T15:40:09.127-0400
2019-10-21T15:40:09.170-0400 [DEBUG] plugin: using plugin: version=5
2019-10-21T15:40:09.170-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: plugin address: address=/var/folders/5n/l0l48n713gsfp9f8_86q94_h0000gn/T/plugin856671562 network=unix timestamp=2019-10-21T15:40:09.170-0400
2019-10-21T15:40:09.256-0400 [DEBUG] plugin.terraform-provider-ns1_v1.6.0_x4: 2019/10/21 15:40:09 [INFO] NS1 Client configured for Endpoint: https://api.nsone.net/v1/
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "ns1_zone.zone" references: []
2019/10/21 15:40:09 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2019/10/21 15:40:09 [TRACE] Executing graph transform *terraform.RootTransformer
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "ns1_team.test-team" references: []
2019/10/21 15:40:09 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2019/10/21 15:40:09 [TRACE] Executing graph transform *terraform.RootTransformer
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "ns1_user.test" references: []
2019/10/21 15:40:09 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2019/10/21 15:40:09 [TRACE] Executing graph transform *terraform.RootTransformer
2019/10/21 15:40:09 [DEBUG] ReferenceTransformer: "ns1_record.localhost" references: []
2019/10/21 15:40:09 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2019/10/21 15:40:09 [TRACE] Executing graph transform *terraform.RootTransformer
2019/10/21 15:40:09 [WARN] Provider "ns1" produced an invalid plan for ns1_user.test, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .dns_zones_allow: planned value cty.ListValEmpty(cty.String) does not match config value cty.NullVal(cty.List(cty.String)) nor prior value cty.ListVal([]cty.Value{cty.StringVal("t.ftdns.net")})
2019-10-21T15:40:09.271-0400 [DEBUG] plugin: plugin process exited: path=/Users/sandbox/ns1-terraform-experiment/.terraform/plugins/darwin_amd64/terraform-provider-ns1_v1.6.0_x4 pid=50263
2019-10-21T15:40:09.271-0400 [DEBUG] plugin: plugin exited
2019/10/21 15:40:09 [TRACE] [walkPlan] Exiting eval tree: provider.ns1 (close)
2019/10/21 15:40:09 [INFO] backend/local: plan operation completed
2019/10/21 15:40:09 [INFO] backend/local: writing plan output to: ns1.plan
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# ns1_user.test will be updated in-place
~ resource "ns1_user" "test" {
account_manage_account_settings = false
account_manage_apikeys = false
account_manage_payment_methods = false
account_manage_plan = false
account_manage_teams = false
account_manage_users = false
- account_view_activity_log = true -> null
account_view_invoices = false
- data_manage_datafeeds = true -> null
- data_manage_datasources = true -> null
- data_push_to_datafeeds = true -> null
- dns_manage_zones = true -> null
- dns_view_zones = true -> null
~ dns_zones_allow = [
- "t.ftdns.net",
]
dns_zones_allow_by_default = false
dns_zones_deny = []
email = "testing@example.com"
id = "testing_org"
- monitoring_manage_jobs = true -> null
- monitoring_manage_lists = true -> null
- monitoring_view_jobs = true -> null
name = "IaC Testing"
notify = {
"billing" = false
}
teams = [
"...cd2d",
]
username = "testing_org"
}
Plan: 0 to add, 1 to change, 0 to destroy.
------------------------------------------------------------------------
This plan was saved to: ns1.plan
To perform exactly these actions, run the following command to apply:
terraform apply "ns1.plan"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment