Skip to content

Instantly share code, notes, and snippets.

@wata727
Created November 7, 2022 17:00
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 wata727/dd14d0bcf7e79af87d6d9b993b40cfb5 to your computer and use it in GitHub Desktop.
Save wata727/dd14d0bcf7e79af87d6d9b993b40cfb5 to your computer and use it in GitHub Desktop.
terraform: Can't use known variables in dynamic block labels
2022-11-07T16:54:53.812Z [INFO] Terraform version: 1.3.4
2022-11-07T16:54:53.812Z [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2022-11-07T16:54:53.812Z [DEBUG] using github.com/hashicorp/hcl/v2 v2.14.1
2022-11-07T16:54:53.812Z [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-11-07T16:54:53.812Z [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-11-07T16:54:53.812Z [DEBUG] using github.com/zclconf/go-cty v1.12.0
2022-11-07T16:54:53.812Z [INFO] Go runtime version: go1.19.3
2022-11-07T16:54:53.812Z [INFO] CLI args: []string{"terraform", "plan"}
2022-11-07T16:54:53.812Z [TRACE] Stdout is a terminal of width 123
2022-11-07T16:54:53.812Z [TRACE] Stderr is a terminal of width 123
2022-11-07T16:54:53.812Z [TRACE] Stdin is a terminal
2022-11-07T16:54:53.812Z [DEBUG] Attempting to open CLI config file: /home/codespace/.terraformrc
2022-11-07T16:54:53.812Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-11-07T16:54:53.812Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-11-07T16:54:53.812Z [DEBUG] ignoring non-existing provider search directory /home/codespace/.terraform.d/plugins
2022-11-07T16:54:53.812Z [DEBUG] ignoring non-existing provider search directory /home/codespace/.local/share/terraform/plu
gins
2022-11-07T16:54:53.813Z [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2022-11-07T16:54:53.813Z [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2022-11-07T16:54:53.813Z [INFO] CLI command args: []string{"plan"}
2022-11-07T16:54:53.814Z [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2022-11-07T16:54:53.814Z [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2022-11-07T16:54:53.814Z [DEBUG] New state was assigned lineage "a189b7a2-afce-11f6-ef55-9f38990b0bbe"
2022-11-07T16:54:53.814Z [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing in
itialized backend)
2022-11-07T16:54:53.814Z [TRACE] Meta.Backend: instantiated backend of type <nil>
2022-11-07T16:54:53.814Z [TRACE] providercache.fillMetaCache: scanning directory .terraform/providers
2022-11-07T16:54:53.814Z [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/apparentlymart/testing v0.0
.2 for linux_amd64 at .terraform/providers/registry.terraform.io/apparentlymart/testing/0.0.2/linux_amd64
2022-11-07T16:54:53.814Z [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/apparent
lymart/testing/0.0.2/linux_amd64 as a candidate package for registry.terraform.io/apparentlymart/testing 0.0.2
2022-11-07T16:54:53.847Z [DEBUG] checking for provisioner in "."
2022-11-07T16:54:53.848Z [DEBUG] checking for provisioner in "/usr/local/bin"
2022-11-07T16:54:53.848Z [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2022-11-07T16:54:53.848Z [INFO] backend/local: starting Plan operation
2022-11-07T16:54:53.848Z [TRACE] backend/local: requesting state manager for workspace "default"
2022-11-07T16:54:53.848Z [TRACE] backend/local: state manager for workspace "default" will:
- read initial snapshot from terraform.tfstate
- write new snapshots to terraform.tfstate
- create any backup at terraform.tfstate.backup
2022-11-07T16:54:53.848Z [TRACE] backend/local: requesting state lock for workspace "default"
2022-11-07T16:54:53.848Z [TRACE] statemgr.Filesystem: preparing to manage state snapshots at terraform.tfstate
2022-11-07T16:54:53.849Z [TRACE] statemgr.Filesystem: no previously-stored snapshot exists
2022-11-07T16:54:53.849Z [TRACE] statemgr.Filesystem: locking terraform.tfstate using fcntl flock
2022-11-07T16:54:53.849Z [TRACE] statemgr.Filesystem: writing lock metadata to .terraform.tfstate.lock.info
2022-11-07T16:54:53.849Z [TRACE] backend/local: reading remote state for workspace "default"
2022-11-07T16:54:53.849Z [TRACE] statemgr.Filesystem: reading latest snapshot from terraform.tfstate
2022-11-07T16:54:53.849Z [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay
2022-11-07T16:54:53.849Z [TRACE] statemgr.Filesystem: read nil snapshot
2022-11-07T16:54:53.849Z [TRACE] backend/local: populating backend.LocalRun for current working directory
2022-11-07T16:54:53.849Z [TRACE] Config.VerifyDependencySelections: provider registry.terraform.io/apparentlymart/testing h
as 0.0.2 to satisfy "0.0.2"
2022-11-07T16:54:53.849Z [TRACE] terraform.NewContext: starting
2022-11-07T16:54:53.849Z [TRACE] terraform.NewContext: complete
2022-11-07T16:54:53.849Z [TRACE] backend/local: requesting interactive input, if necessary
2022-11-07T16:54:53.849Z [TRACE] LoadSchemas: retrieving schema for provider type "registry.terraform.io/apparentlymart/tes
ting"
2022-11-07T16:54:53.849Z [TRACE] terraform.contextPlugins: Initializing provider "registry.terraform.io/apparentlymart/test
ing" to read its schema
2022-11-07T16:54:53.849Z [DEBUG] created provider logger: level=trace
2022-11-07T16:54:53.849Z [INFO] provider: configuring client automatic mTLS
2022-11-07T16:54:53.869Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/apparentlymart/
testing/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2 args=[.terraform/providers/registry.terraform.io/apparentlymart
/testing/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2]
2022-11-07T16:54:53.870Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/apparentlymart/t
esting/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2 pid=5582
2022-11-07T16:54:53.870Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/apparen
tlymart/testing/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2
2022-11-07T16:54:53.873Z [INFO] provider.terraform-provider-testing_v0.0.2: configuring server automatic mTLS: timestamp=2
022-11-07T16:54:53.873Z
2022-11-07T16:54:53.901Z [DEBUG] provider.terraform-provider-testing_v0.0.2: plugin address: address=/tmp/plugin852617824 n
etwork=unix timestamp=2022-11-07T16:54:53.900Z
2022-11-07T16:54:53.901Z [DEBUG] provider: using plugin: version=5
2022-11-07T16:54:53.934Z [TRACE] GRPCProvider: GetProviderSchema
2022-11-07T16:54:53.934Z [TRACE] provider.stdio: waiting for stdio data
2022-11-07T16:54:53.935Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented des
c = unknown service plugin.GRPCStdio"
2022-11-07T16:54:53.935Z [DEBUG] No provider meta schema returned
2022-11-07T16:54:53.935Z [TRACE] GRPCProvider: Close
2022-11-07T16:54:53.936Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/apparentl
ymart/testing/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2 pid=5582
2022-11-07T16:54:53.936Z [DEBUG] provider: plugin exited
2022-11-07T16:54:53.936Z [TRACE] Context.Input: Prompting for provider arguments
2022-11-07T16:54:53.936Z [TRACE] Context.Input: Provider provider.testing implied by data block at main.tf:15,1-33
2022-11-07T16:54:53.936Z [TRACE] Context.Input: Input for provider.testing: map[string]cty.Value{}
2022-11-07T16:54:53.936Z [TRACE] backend/local: running validation operation
2022-11-07T16:54:53.936Z [DEBUG] Building and walking validate graph
2022-11-07T16:54:53.936Z [TRACE] building graph for walkValidate
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.ConfigTransformer
2022-11-07T16:54:53.936Z [TRACE] ConfigTransformer: Starting for path:
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
data.testing_assertions.main - *terraform.NodeValidatableResource
------
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.RootVariableTransformer
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.RootVariableTransformer with new graph:
data.testing_assertions.main - *terraform.NodeValidatableResource
var.foo - *terraform.NodeRootVariable
------
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.LocalTransformer
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.OutputTransformer
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.OrphanResourceInstanceTransformer
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.OrphanResourceInstanceTransformer (no changes)
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.StateTransformer
2022-11-07T16:54:53.936Z [TRACE] StateTransformer: pointless no-op call, creating no nodes at all
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.StateTransformer (no changes)
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.AttachStateTransformer
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.OrphanOutputTransformer
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.OrphanOutputTransformer (no changes)
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2022-11-07T16:54:53.936Z [TRACE] AttachResourceConfigTransformer: attaching to "data.testing_assertions.main" (*terraform.N
odeValidatableResource) config from hcl.Range{Filename:"main.tf", Start:hcl.Pos{Line:15, Column:1, Byte:189}, End:hcl.Pos{L
ine:15, Column:33, Byte:221}}
2022-11-07T16:54:53.936Z [TRACE] AttachResourceConfigTransformer: attaching provider meta configs to data.testing_assertion
s.main
2022-11-07T16:54:53.936Z [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2022-11-07T16:54:53.936Z [TRACE] Executing graph transform *terraform.graphTransformerMulti
2022-11-07T16:54:53.936Z [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2022-11-07T16:54:53.936Z [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer wit
h new graph:
data.testing_assertions.main - *terraform.NodeValidatableResource
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
var.foo - *terraform.NodeRootVariable
------
2022-11-07T16:54:53.936Z [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2022-11-07T16:54:53.936Z [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (n
o changes)
2022-11-07T16:54:53.936Z [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2022-11-07T16:54:53.936Z [TRACE] ProviderTransformer: exact match for provider["registry.terraform.io/apparentlymart/testin
g"] serving data.testing_assertions.main
2022-11-07T16:54:53.936Z [DEBUG] ProviderTransformer: "data.testing_assertions.main" (*terraform.NodeValidatableResource) n
eeds provider["registry.terraform.io/apparentlymart/testing"]
2022-11-07T16:54:53.936Z [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new
graph:
data.testing_assertions.main - *terraform.NodeValidatableResource
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
var.foo - *terraform.NodeRootVariable
------
2022-11-07T16:54:53.936Z [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2022-11-07T16:54:53.936Z [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no
changes)
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
data.testing_assertions.main - *terraform.NodeValidatableResource
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
var.foo - *terraform.NodeRootVariable
------
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.RemovedModuleTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.RemovedModuleTransformer (no changes)
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2022-11-07T16:54:53.937Z [TRACE] AttachSchemaTransformer: attaching provider config schema to provider["registry.terraform.
io/apparentlymart/testing"]
2022-11-07T16:54:53.937Z [TRACE] AttachSchemaTransformer: attaching resource schema to data.testing_assertions.main
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.ModuleExpansionTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.ModuleExpansionTransformer (no changes)
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.ReferenceTransformer
2022-11-07T16:54:53.937Z [DEBUG] ReferenceTransformer: "data.testing_assertions.main" references: [var.foo]
2022-11-07T16:54:53.937Z [DEBUG] ReferenceTransformer: "var.foo" references: []
2022-11-07T16:54:53.937Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/apparentlymart/testing\"]" referen
ces: []
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.ReferenceTransformer with new graph:
data.testing_assertions.main - *terraform.NodeValidatableResource
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
var.foo - *terraform.NodeRootVariable
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
var.foo - *terraform.NodeRootVariable
------
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.AttachDependenciesTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.AttachDependenciesTransformer (no changes)
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.attachDataResourceDependsOnTransformer
2022-11-07T16:54:53.937Z [TRACE] attachDataDependenciesTransformer: data.testing_assertions.main depends on []
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.attachDataResourceDependsOnTransformer (no changes)
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.DestroyEdgeTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.DestroyEdgeTransformer (no changes)
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.pruneUnusedNodesTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.pruneUnusedNodesTransformer (no changes)
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.TargetsTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.ForcedCBDTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.ForcedCBDTransformer (no changes)
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
data.testing_assertions.main - *terraform.NodeValidatableResource
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
var.foo - *terraform.NodeRootVariable
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/apparentlymart/testing"] (close) - *terraform.graphNodeCloseProvider
data.testing_assertions.main - *terraform.NodeValidatableResource
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
var.foo - *terraform.NodeRootVariable
------
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.CloseRootModuleTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.CloseRootModuleTransformer with new graph:
data.testing_assertions.main - *terraform.NodeValidatableResource
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
var.foo - *terraform.NodeRootVariable
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/apparentlymart/testing"] (close) - *terraform.graphNodeCloseProvider
data.testing_assertions.main - *terraform.NodeValidatableResource
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
root - *terraform.nodeCloseModule
provider["registry.terraform.io/apparentlymart/testing"] (close) - *terraform.graphNodeCloseProvider
var.foo - *terraform.NodeRootVariable
------
2022-11-07T16:54:53.937Z [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2022-11-07T16:54:53.937Z [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
data.testing_assertions.main - *terraform.NodeValidatableResource
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
var.foo - *terraform.NodeRootVariable
provider["registry.terraform.io/apparentlymart/testing"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/apparentlymart/testing"] (close) - *terraform.graphNodeCloseProvider
data.testing_assertions.main - *terraform.NodeValidatableResource
root - *terraform.nodeCloseModule
provider["registry.terraform.io/apparentlymart/testing"] (close) - *terraform.graphNodeCloseProvider
var.foo - *terraform.NodeRootVariable
------
2022-11-07T16:54:53.937Z [DEBUG] Starting graph walk: walkValidate
2022-11-07T16:54:53.937Z [TRACE] vertex "var.foo": starting visit (*terraform.NodeRootVariable)
2022-11-07T16:54:53.937Z [TRACE] NodeRootVariable: evaluating var.foo
2022-11-07T16:54:53.937Z [TRACE] prepareFinalInputVariableValue: preparing var.foo
2022-11-07T16:54:53.937Z [TRACE] prepareFinalInputVariableValue: var.foo has a default value
2022-11-07T16:54:53.937Z [TRACE] BuiltinEvalContext: Storing final value for variable var.foo
2022-11-07T16:54:53.937Z [TRACE] evalVariableValidations: no validation rules declared for var.foo, so skipping
2022-11-07T16:54:53.937Z [TRACE] vertex "var.foo": visit complete
2022-11-07T16:54:53.937Z [TRACE] vertex "provider[\"registry.terraform.io/apparentlymart/testing\"]": starting visit (*terr
aform.NodeApplyableProvider)
2022-11-07T16:54:53.937Z [DEBUG] created provider logger: level=trace
2022-11-07T16:54:53.937Z [INFO] provider: configuring client automatic mTLS
2022-11-07T16:54:53.946Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/apparentlymart/
testing/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2 args=[.terraform/providers/registry.terraform.io/apparentlymart
/testing/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2]
2022-11-07T16:54:53.946Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/apparentlymart/t
esting/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2 pid=5594
2022-11-07T16:54:53.946Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/apparen
tlymart/testing/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2
2022-11-07T16:54:53.949Z [INFO] provider.terraform-provider-testing_v0.0.2: configuring server automatic mTLS: timestamp=2
022-11-07T16:54:53.949Z
2022-11-07T16:54:53.975Z [DEBUG] provider: using plugin: version=5
2022-11-07T16:54:53.976Z [DEBUG] provider.terraform-provider-testing_v0.0.2: plugin address: network=unix address=/tmp/plug
in672938578 timestamp=2022-11-07T16:54:53.975Z
2022-11-07T16:54:54.008Z [TRACE] BuiltinEvalContext: Initialized "provider[\"registry.terraform.io/apparentlymart/testing\"
]" provider for provider["registry.terraform.io/apparentlymart/testing"]
2022-11-07T16:54:54.008Z [TRACE] provider.stdio: waiting for stdio data
2022-11-07T16:54:54.008Z [TRACE] NodeApplyableProvider: validating configuration for provider["registry.terraform.io/appare
ntlymart/testing"]
2022-11-07T16:54:54.008Z [TRACE] buildProviderConfig for provider["registry.terraform.io/apparentlymart/testing"]: no confi
guration at all
2022-11-07T16:54:54.008Z [TRACE] vertex "provider[\"registry.terraform.io/apparentlymart/testing\"]": visit complete
2022-11-07T16:54:54.008Z [TRACE] vertex "data.testing_assertions.main": starting visit (*terraform.NodeValidatableResource)
2022-11-07T16:54:54.009Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented des
c = unknown service plugin.GRPCStdio"
2022-11-07T16:54:54.009Z [ERROR] vertex "data.testing_assertions.main" error: Invalid dynamic block label
2022-11-07T16:54:54.009Z [TRACE] vertex "data.testing_assertions.main": visit complete, with errors
2022-11-07T16:54:54.009Z [TRACE] dag/walk: upstream of "provider[\"registry.terraform.io/apparentlymart/testing\"] (close)"
errored, so skipping
2022-11-07T16:54:54.009Z [TRACE] dag/walk: upstream of "root" errored, so skipping
2022-11-07T16:54:54.009Z [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2022-11-07T16:54:54.009Z [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
│ Error: Invalid dynamic block label
│ on main.tf line 18, in data "testing_assertions" "main":
│ 18: labels = [var.foo]
│ ├────────────────
│ │ var.foo is a string
│ This value is not yet known. Dynamic block labels must be immediately-known values.
2022-11-07T16:54:54.011Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/apparentl
ymart/testing/0.0.2/linux_amd64/terraform-provider-testing_v0.0.2 pid=5594
2022-11-07T16:54:54.011Z [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment