Skip to content

Instantly share code, notes, and snippets.

@111a5ab1
Created May 31, 2023 03:01
Show Gist options
  • Save 111a5ab1/4aea3d89a4bbe22989c853044da4b2b2 to your computer and use it in GitHub Desktop.
Save 111a5ab1/4aea3d89a4bbe22989c853044da4b2b2 to your computer and use it in GitHub Desktop.
Terraform Vault provider via UDS
$ terraform plan
2023-05-31T12:57:28.618+1000 [INFO] Terraform version: 1.3.7
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/hashicorp/hcl/v2 v2.15.0
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2023-05-31T12:57:28.618+1000 [DEBUG] using github.com/zclconf/go-cty v1.12.1
2023-05-31T12:57:28.618+1000 [INFO] Go runtime version: go1.19.4
2023-05-31T12:57:28.618+1000 [INFO] CLI args: []string{"terraform", "plan"}
2023-05-31T12:57:28.618+1000 [DEBUG] Attempting to open CLI config file: /home/parallels/.terraformrc
2023-05-31T12:57:28.618+1000 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2023-05-31T12:57:28.618+1000 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2023-05-31T12:57:28.618+1000 [DEBUG] ignoring non-existing provider search directory /home/parallels/.terraform.d/plugins
2023-05-31T12:57:28.618+1000 [DEBUG] ignoring non-existing provider search directory /home/parallels/.local/share/terraform/plugins
2023-05-31T12:57:28.618+1000 [DEBUG] ignoring non-existing provider search directory /usr/share/ubuntu/terraform/plugins
2023-05-31T12:57:28.618+1000 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2023-05-31T12:57:28.618+1000 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2023-05-31T12:57:28.618+1000 [DEBUG] ignoring non-existing provider search directory /var/lib/snapd/desktop/terraform/plugins
2023-05-31T12:57:28.618+1000 [INFO] CLI command args: []string{"plan"}
2023-05-31T12:57:28.622+1000 [DEBUG] New state was assigned lineage "827b93de-3f39-4805-bbf4-b48925b58e53"
2023-05-31T12:57:28.637+1000 [DEBUG] checking for provisioner in "."
2023-05-31T12:57:28.637+1000 [DEBUG] checking for provisioner in "/usr/local/bin"
2023-05-31T12:57:28.637+1000 [INFO] backend/local: starting Plan operation
2023-05-31T12:57:28.638+1000 [DEBUG] created provider logger: level=debug
2023-05-31T12:57:28.638+1000 [INFO] provider: configuring client automatic mTLS
2023-05-31T12:57:28.646+1000 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5]
2023-05-31T12:57:28.656+1000 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5 pid=1643630
2023-05-31T12:57:28.656+1000 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5
2023-05-31T12:57:28.670+1000 [INFO] provider.terraform-provider-vault_v3.15.2_x5: configuring server automatic mTLS: timestamp=2023-05-31T12:57:28.670+1000
2023-05-31T12:57:28.680+1000 [DEBUG] provider.terraform-provider-vault_v3.15.2_x5: plugin address: address=/tmp/plugin967943937 network=unix timestamp=2023-05-31T12:57:28.680+1000
2023-05-31T12:57:28.680+1000 [DEBUG] provider: using plugin: version=5
2023-05-31T12:57:28.703+1000 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-05-31T12:57:28.704+1000 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5 pid=1643630
2023-05-31T12:57:28.704+1000 [DEBUG] provider: plugin exited
2023-05-31T12:57:28.704+1000 [DEBUG] Building and walking validate graph
2023-05-31T12:57:28.704+1000 [DEBUG] ProviderTransformer: "vault_mount.example" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/vault"]
2023-05-31T12:57:28.704+1000 [DEBUG] ReferenceTransformer: "vault_mount.example" references: []
2023-05-31T12:57:28.704+1000 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/vault\"]" references: []
2023-05-31T12:57:28.705+1000 [DEBUG] Starting graph walk: walkValidate
2023-05-31T12:57:28.705+1000 [DEBUG] created provider logger: level=debug
2023-05-31T12:57:28.705+1000 [INFO] provider: configuring client automatic mTLS
2023-05-31T12:57:28.708+1000 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5]
2023-05-31T12:57:28.709+1000 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5 pid=1643637
2023-05-31T12:57:28.709+1000 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5
2023-05-31T12:57:28.729+1000 [INFO] provider.terraform-provider-vault_v3.15.2_x5: configuring server automatic mTLS: timestamp=2023-05-31T12:57:28.729+1000
2023-05-31T12:57:28.738+1000 [DEBUG] provider.terraform-provider-vault_v3.15.2_x5: plugin address: address=/tmp/plugin1064310703 network=unix timestamp=2023-05-31T12:57:28.738+1000
2023-05-31T12:57:28.738+1000 [DEBUG] provider: using plugin: version=5
2023-05-31T12:57:28.764+1000 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-05-31T12:57:28.766+1000 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5 pid=1643637
2023-05-31T12:57:28.766+1000 [DEBUG] provider: plugin exited
2023-05-31T12:57:28.766+1000 [INFO] backend/local: plan calling Plan
2023-05-31T12:57:28.766+1000 [DEBUG] Building and walking plan graph for NormalMode
2023-05-31T12:57:28.766+1000 [DEBUG] ProviderTransformer: "vault_mount.example (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/vault"]
2023-05-31T12:57:28.766+1000 [DEBUG] ReferenceTransformer: "vault_mount.example (expand)" references: []
2023-05-31T12:57:28.766+1000 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/vault\"]" references: []
2023-05-31T12:57:28.766+1000 [DEBUG] Starting graph walk: walkPlan
2023-05-31T12:57:28.766+1000 [DEBUG] created provider logger: level=debug
2023-05-31T12:57:28.766+1000 [INFO] provider: configuring client automatic mTLS
2023-05-31T12:57:28.770+1000 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5]
2023-05-31T12:57:28.770+1000 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5 pid=1643644
2023-05-31T12:57:28.770+1000 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5
2023-05-31T12:57:28.783+1000 [INFO] provider.terraform-provider-vault_v3.15.2_x5: configuring server automatic mTLS: timestamp=2023-05-31T12:57:28.783+1000
2023-05-31T12:57:28.792+1000 [DEBUG] provider: using plugin: version=5
2023-05-31T12:57:28.792+1000 [DEBUG] provider.terraform-provider-vault_v3.15.2_x5: plugin address: address=/tmp/plugin2638807319 network=unix timestamp=2023-05-31T12:57:28.792+1000
2023-05-31T12:57:28.820+1000 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/hashicorp/vault\"]" changed the config value, but that value is unused
2023-05-31T12:57:28.821+1000 [ERROR] vertex "provider[\"registry.terraform.io/hashicorp/vault\"]" error: failed to configure Vault API: attempting to specify unix:// address with non-transport transport
2023-05-31T12:57:28.821+1000 [INFO] backend/local: plan operation completed
│ Error: failed to configure Vault API: attempting to specify unix:// address with non-transport transport
│ with provider["registry.terraform.io/hashicorp/vault"],
│ on main.tf line 10, in provider "vault":
│ 10: provider "vault" {
2023-05-31T12:57:28.822+1000 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-05-31T12:57:28.822+1000 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.15.2/linux_arm64/terraform-provider-vault_v3.15.2_x5 pid=1643644
2023-05-31T12:57:28.822+1000 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment