Skip to content

Instantly share code, notes, and snippets.

@gombosg
Created November 5, 2021 09:05
Show Gist options
  • Save gombosg/4b39279cced18b0f60fc1a16e33cf96f to your computer and use it in GitHub Desktop.
Save gombosg/4b39279cced18b0f60fc1a16e33cf96f to your computer and use it in GitHub Desktop.
Terraform bug
~/p/p/process-street (master|…) $ env TF_LOG=DEBUG terraform validate 10:02:42
2021-11-05T10:05:01.815+0100 [DEBUG] Adding temp file log sink: /tmp/terraform-log619324476
2021-11-05T10:05:01.815+0100 [INFO] Terraform version: 1.0.10
2021-11-05T10:05:01.815+0100 [INFO] Go runtime version: go1.16.4
2021-11-05T10:05:01.815+0100 [INFO] CLI args: []string{"/home/gombosg/bin/terraform", "validate"}
2021-11-05T10:05:01.815+0100 [DEBUG] Attempting to open CLI config file: /home/gombosg/.terraformrc
2021-11-05T10:05:01.815+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021-11-05T10:05:01.815+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021-11-05T10:05:01.815+0100 [DEBUG] ignoring non-existing provider search directory /home/gombosg/.terraform.d/plugins
2021-11-05T10:05:01.815+0100 [DEBUG] ignoring non-existing provider search directory /home/gombosg/.local/share/terraform/plugins
2021-11-05T10:05:01.815+0100 [DEBUG] ignoring non-existing provider search directory /home/gombosg/.local/share/flatpak/exports/share/terraform/plugins
2021-11-05T10:05:01.815+0100 [DEBUG] ignoring non-existing provider search directory /var/lib/flatpak/exports/share/terraform/plugins
2021-11-05T10:05:01.815+0100 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2021-11-05T10:05:01.815+0100 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2021-11-05T10:05:01.815+0100 [INFO] CLI command args: []string{"validate"}
2021-11-05T10:05:02.195+0100 [DEBUG] checking for provisioner in "."
2021-11-05T10:05:02.195+0100 [DEBUG] checking for provisioner in "/home/gombosg/bin"
2021-11-05T10:05:02.195+0100 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2021-11-05T10:05:02.196+0100 [DEBUG] created provider logger: level=debug
2021-11-05T10:05:02.196+0100 [INFO] provider: configuring client automatic mTLS
2021-11-05T10:05:02.220+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5]
2021-11-05T10:05:02.220+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5 pid=32872
2021-11-05T10:05:02.220+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5
2021-11-05T10:05:02.243+0100 [INFO] provider.terraform-provider-aws_v3.64.1_x5: configuring server automatic mTLS: timestamp=2021-11-05T10:05:02.243+0100
2021-11-05T10:05:02.264+0100 [DEBUG] provider.terraform-provider-aws_v3.64.1_x5: plugin address: address=/tmp/plugin754218871 network=unix timestamp=2021-11-05T10:05:02.264+0100
2021-11-05T10:05:02.264+0100 [DEBUG] provider: using plugin: version=5
2021-11-05T10:05:02.361+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-11-05T10:05:02.364+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5 pid=32872
2021-11-05T10:05:02.364+0100 [DEBUG] provider: plugin exited
2021-11-05T10:05:02.364+0100 [INFO] terraform: building graph: GraphTypeValidate
2021-11-05T10:05:02.364+0100 [DEBUG] ProviderTransformer: "aws_sqs_queue.checklist_migration_priority2" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2021-11-05T10:05:02.364+0100 [DEBUG] ProviderTransformer: "aws_sqs_queue.checklist_migration_priority3" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2021-11-05T10:05:02.364+0100 [DEBUG] ProviderTransformer: "aws_sqs_queue.checklist_migration_deadletter" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2021-11-05T10:05:02.364+0100 [DEBUG] ProviderTransformer: "aws_sqs_queue.checklist_migration_priority1" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/aws"]
2021-11-05T10:05:02.364+0100 [DEBUG] ReferenceTransformer: "aws_sqs_queue.checklist_migration_priority3" references: [aws_sqs_queue.checklist_migration_deadletter]
2021-11-05T10:05:02.364+0100 [DEBUG] ReferenceTransformer: "aws_sqs_queue.checklist_migration_deadletter" references: []
2021-11-05T10:05:02.365+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/aws\"]" references: []
2021-11-05T10:05:02.365+0100 [DEBUG] ReferenceTransformer: "aws_sqs_queue.checklist_migration_priority1" references: [aws_sqs_queue.checklist_migration_deadletter]
2021-11-05T10:05:02.365+0100 [DEBUG] ReferenceTransformer: "aws_sqs_queue.checklist_migration_priority2" references: [aws_sqs_queue.checklist_migration_deadletter]
2021-11-05T10:05:02.365+0100 [DEBUG] Starting graph walk: walkValidate
2021-11-05T10:05:02.365+0100 [DEBUG] created provider logger: level=debug
2021-11-05T10:05:02.365+0100 [INFO] provider: configuring client automatic mTLS
2021-11-05T10:05:02.394+0100 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5]
2021-11-05T10:05:02.394+0100 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5 pid=32893
2021-11-05T10:05:02.394+0100 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5
2021-11-05T10:05:02.420+0100 [INFO] provider.terraform-provider-aws_v3.64.1_x5: configuring server automatic mTLS: timestamp=2021-11-05T10:05:02.420+0100
2021-11-05T10:05:02.444+0100 [DEBUG] provider.terraform-provider-aws_v3.64.1_x5: plugin address: address=/tmp/plugin668296473 network=unix timestamp=2021-11-05T10:05:02.444+0100
2021-11-05T10:05:02.445+0100 [DEBUG] provider: using plugin: version=5
│ Error: Unsupported argument
│ on localstack.tf line 27, in provider "aws":
│ 27: es = "http://localhost:4566"
│ An argument named "es" is not expected here. Did you mean "fsx"?
│ Error: Unsupported argument
│ on localstack.tf line 40, in provider "aws":
│ 40: stepfunctions = "http://localhost:4566"
│ An argument named "stepfunctions" is not expected here.
2021-11-05T10:05:02.551+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-11-05T10:05:02.554+0100 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.64.1/linux_amd64/terraform-provider-aws_v3.64.1_x5 pid=32893
2021-11-05T10:05:02.554+0100 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment