You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ TF_LOG=trace t plan
2023-10-06T10:24:36.019+0100 [INFO] Terraform version: 1.6.0
2023-10-06T10:24:36.019+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.34.0
2023-10-06T10:24:36.019+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.18.0
2023-10-06T10:24:36.019+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2023-10-06T10:24:36.019+0100 [DEBUG] using github.com/zclconf/go-cty v1.14.0
2023-10-06T10:24:36.019+0100 [INFO] Go runtime version: go1.21.1
2023-10-06T10:24:36.019+0100 [INFO] CLI args: []string{"/home/matt/.tfenv/versions/1.6.0/terraform", "plan"}
2023-10-06T10:24:36.019+0100 [TRACE] Stdout is a terminal of width 138
2023-10-06T10:24:36.019+0100 [TRACE] Stderr is a terminal of width 138
2023-10-06T10:24:36.019+0100 [TRACE] Stdin is a terminal
2023-10-06T10:24:36.019+0100 [DEBUG] Attempting to open CLI config file: /home/matt/.terraformrc
2023-10-06T10:24:36.019+0100 [INFO] Loading CLI configuration from /home/matt/.terraformrc
2023-10-06T10:24:36.019+0100 [DEBUG] checking for credentials in "/home/matt/.terraform.d/plugins"
2023-10-06T10:24:36.019+0100 [DEBUG] Explicit provider installation configuration is set
2023-10-06T10:24:36.019+0100 [TRACE] Selected provider installation method cliconfig.ProviderInstallationDirect with includes [] and excludes []
2023-10-06T10:24:36.019+0100 [INFO] CLI command args: []string{"plan"}
2023-10-06T10:24:36.019+0100 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2023-10-06T10:24:36.020+0100 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2023-10-06T10:24:36.020+0100 [DEBUG] New state was assigned lineage "56fbb5e5-8c4e-fe13-fbd2-6882c6578bfe"
2023-10-06T10:24:36.020+0100 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2023-10-06T10:24:36.020+0100 [TRACE] Meta.Backend: instantiated backend of type <nil>
2023-10-06T10:24:36.020+0100 [DEBUG] Provider registry.terraform.io/azure/alz is overridden by dev_overrides
2023-10-06T10:24:36.020+0100 [DEBUG] Provider registry.terraform.io/azure/alz is overridden to load from /home/matt/code/go/bin
2023-10-06T10:24:36.020+0100 [DEBUG] checking for provisioner in "."
2023-10-06T10:24:36.020+0100 [DEBUG] checking for provisioner in "/home/matt/.tfenv/versions/1.6.0"
2023-10-06T10:24:36.020+0100 [DEBUG] checking for provisioner in "/home/matt/.terraform.d/plugins"
2023-10-06T10:24:36.020+0100 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2023-10-06T10:24:36.020+0100 [DEBUG] Provider registry.terraform.io/azure/alz is overridden by dev_overrides
╷
│ Warning: Provider development overrides are in effect
│
│ The following provider development overrides are set in the CLI configuration:
│ - azure/alz in /home/matt/code/go/bin
│
│ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become
│ incompatible with published releases.
╵
2023-10-06T10:24:36.020+0100 [INFO] backend/local: starting Plan operation
2023-10-06T10:24:36.020+0100 [TRACE] backend/local: requesting state manager for workspace "default"
2023-10-06T10:24:36.020+0100 [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
2023-10-06T10:24:36.020+0100 [TRACE] backend/local: requesting state lock for workspace "default"
2023-10-06T10:24:36.020+0100 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at terraform.tfstate
2023-10-06T10:24:36.020+0100 [TRACE] statemgr.Filesystem: no previously-stored snapshot exists
2023-10-06T10:24:36.020+0100 [TRACE] statemgr.Filesystem: locking terraform.tfstate using fcntl flock
2023-10-06T10:24:36.020+0100 [TRACE] statemgr.Filesystem: writing lock metadata to .terraform.tfstate.lock.info
2023-10-06T10:24:36.020+0100 [TRACE] backend/local: reading remote state for workspace "default"
2023-10-06T10:24:36.020+0100 [TRACE] statemgr.Filesystem: reading latest snapshot from terraform.tfstate
2023-10-06T10:24:36.020+0100 [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay
2023-10-06T10:24:36.020+0100 [TRACE] statemgr.Filesystem: read nil snapshot
2023-10-06T10:24:36.020+0100 [TRACE] backend/local: populating backend.LocalRun for current working directory
2023-10-06T10:24:36.021+0100 [DEBUG] Config.VerifyDependencySelections: skipping registry.terraform.io/azure/alz because it's overridden by a special configuration setting
2023-10-06T10:24:36.021+0100 [TRACE] terraform.NewContext: starting
2023-10-06T10:24:36.021+0100 [TRACE] terraform.NewContext: complete
2023-10-06T10:24:36.021+0100 [TRACE] backend/local: requesting interactive input, if necessary
2023-10-06T10:24:36.021+0100 [TRACE] LoadSchemas: retrieving schema for provider type "registry.terraform.io/azure/alz"
2023-10-06T10:24:36.021+0100 [TRACE] terraform.contextPlugins: Initializing provider "registry.terraform.io/azure/alz" to read its schema
2023-10-06T10:24:36.021+0100 [DEBUG] created provider logger: level=trace
2023-10-06T10:24:36.021+0100 [INFO] provider: configuring client automatic mTLS
2023-10-06T10:24:36.028+0100 [DEBUG] provider: starting plugin: path=/home/matt/code/go/bin/terraform-provider-alz args=["/home/matt/code/go/bin/terraform-provider-alz"]
2023-10-06T10:24:36.028+0100 [DEBUG] provider: plugin started: path=/home/matt/code/go/bin/terraform-provider-alz pid=16332
2023-10-06T10:24:36.028+0100 [DEBUG] provider: waiting for RPC address: path=/home/matt/code/go/bin/terraform-provider-alz
2023-10-06T10:24:36.030+0100 [INFO] provider.terraform-provider-alz: configuring server automatic mTLS: timestamp="2023-10-06T10:24:36.030+0100"
2023-10-06T10:24:36.039+0100 [DEBUG] provider: using plugin: version=6
2023-10-06T10:24:36.039+0100 [DEBUG] provider.terraform-provider-alz: plugin address: address=/tmp/plugin789566436 network=unix timestamp="2023-10-06T10:24:36.039+0100"
2023-10-06T10:24:36.045+0100 [TRACE] GRPCProvider.v6: GetProviderSchema
2023-10-06T10:24:36.045+0100 [TRACE] provider.stdio: waiting for stdio data
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Received request: tf_proto_version=6.4 tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/tf6server/server.go:531 @module=sdk.proto timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Sending request downstream: @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/tf6serverlogging/downstream_request.go:20 @module=sdk.proto tf_proto_version=6.4 tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Calling provider defined Provider Metadata: @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server_getproviderschema.go:37 timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Called provider defined Provider Metadata: @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server_getproviderschema.go:39 @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Checking ProviderSchema lock: @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:291 @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Calling provider defined Provider Schema: tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:302 @module=sdk.framework timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Called provider defined Provider Schema: tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:304 @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Checking ResourceTypes lock: tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:369 @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Calling provider defined Provider Resources: @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:379 timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Called provider defined Provider Resources: @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:381 timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Found resource type: @module=sdk.framework tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_resource_type=alz_policy_role_assignments @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:402 tf_provider_addr=registry.terraform.io/azure/alz tf_rpc=GetProviderSchema timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Calling provider defined Resource Schema method: @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:498 @module=sdk.framework tf_resource_type=alz_policy_role_assignments tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Called provider defined Resource Schema method: @module=sdk.framework tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_resource_type=alz_policy_role_assignments tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:500 tf_provider_addr=registry.terraform.io/azure/alz timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Checking DataSourceTypes lock: @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:135 timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Calling provider defined Provider DataSources: @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:145 timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Called provider defined Provider DataSources: @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:147 timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Found data source type: tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_data_source_type=alz_archetype tf_provider_addr=registry.terraform.io/azure/alz tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:168 @module=sdk.framework timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Found data source type: @module=sdk.framework tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema tf_data_source_type=alz_archetype_keys tf_provider_addr=registry.terraform.io/azure/alz @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:168 timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Calling provider defined DataSource Schema: @module=sdk.framework tf_data_source_type=alz_archetype_keys @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:264 tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Called provider defined DataSource Schema: tf_data_source_type=alz_archetype_keys tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:266 @module=sdk.framework timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Calling provider defined DataSource Schema: tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_data_source_type=alz_archetype tf_provider_addr=registry.terraform.io/azure/alz tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:264 @module=sdk.framework timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Called provider defined DataSource Schema: tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:266 @module=sdk.framework tf_data_source_type=alz_archetype timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Received downstream response: @module=sdk.proto diagnostic_error_count=0 diagnostic_warning_count=0 tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/tf6serverlogging/downstream_request.go:40 tf_proto_version=6.4 tf_req_duration_ms=0 tf_rpc=GetProviderSchema timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Announced server capabilities: tf_proto_version=6.4 tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 tf_rpc=GetProviderSchema tf_server_capability_get_provider_schema_optional=true @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/tf6serverlogging/server_capabilities.go:25 @module=sdk.proto tf_provider_addr=registry.terraform.io/azure/alz tf_server_capability_plan_destroy=true timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.046+0100 [TRACE] provider.terraform-provider-alz: Served request: @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/tf6server/server.go:551 @module=sdk.proto tf_rpc=GetProviderSchema tf_proto_version=6.4 tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=399febd1-de56-47b8-4a40-f05ad30abc85 timestamp="2023-10-06T10:24:36.046+0100"
2023-10-06T10:24:36.049+0100 [DEBUG] No provider meta schema returned
2023-10-06T10:24:36.049+0100 [TRACE] GRPCProvider.v6: Close
2023-10-06T10:24:36.050+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-10-06T10:24:36.050+0100 [DEBUG] provider: plugin process exited: path=/home/matt/code/go/bin/terraform-provider-alz pid=16332
2023-10-06T10:24:36.050+0100 [DEBUG] provider: plugin exited
2023-10-06T10:24:36.050+0100 [TRACE] Context.Input: Prompting for provider arguments
2023-10-06T10:24:36.050+0100 [TRACE] Context.Input: Provider provider.alz declared at main.tf:10,1-15
2023-10-06T10:24:36.050+0100 [TRACE] Context.Input: Input for provider.alz: map[string]cty.Value{}
2023-10-06T10:24:36.050+0100 [TRACE] backend/local: running validation operation
2023-10-06T10:24:36.050+0100 [DEBUG] Building and walking validate graph
2023-10-06T10:24:36.050+0100 [TRACE] building graph for walkValidate
2023-10-06T10:24:36.050+0100 [TRACE] Executing graph transform *terraform.ConfigTransformer
2023-10-06T10:24:36.050+0100 [TRACE] ConfigTransformer: Starting for path:
2023-10-06T10:24:36.050+0100 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
data.alz_archetype.test - *terraform.NodeValidatableResource
------
2023-10-06T10:24:36.050+0100 [TRACE] Executing graph transform *terraform.RootVariableTransformer
2023-10-06T10:24:36.050+0100 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes)
2023-10-06T10:24:36.050+0100 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2023-10-06T10:24:36.050+0100 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2023-10-06T10:24:36.050+0100 [TRACE] Executing graph transform *terraform.LocalTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.OutputTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.checkTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.checkTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.StateTransformer
2023-10-06T10:24:36.051+0100 [TRACE] StateTransformer: pointless no-op call, creating no nodes at all
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.StateTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.OrphanOutputTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.OrphanOutputTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2023-10-06T10:24:36.051+0100 [TRACE] AttachResourceConfigTransformer: attaching to "data.alz_archetype.test" (*terraform.NodeValidatableResource) config from hcl.Range{Filename:"main.tf", Start:hcl.Pos{Line:13, Column:1, Byte:139}, End:hcl.Pos{Line:13, Column:28, Byte:166}}
2023-10-06T10:24:36.051+0100 [TRACE] AttachResourceConfigTransformer: attaching provider meta configs to data.alz_archetype.test
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.graphTransformerMulti
2023-10-06T10:24:36.051+0100 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2023-10-06T10:24:36.051+0100 [TRACE] ProviderConfigTransformer: attaching to "provider[\"registry.terraform.io/azure/alz\"]" provider configuration from main.tf:10,1-15
2023-10-06T10:24:36.051+0100 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph:
data.alz_archetype.test - *terraform.NodeValidatableResource
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
------
2023-10-06T10:24:36.051+0100 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2023-10-06T10:24:36.051+0100 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2023-10-06T10:24:36.051+0100 [TRACE] ProviderTransformer: exact match for provider["registry.terraform.io/azure/alz"] serving data.alz_archetype.test
2023-10-06T10:24:36.051+0100 [DEBUG] ProviderTransformer: "data.alz_archetype.test" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/azure/alz"]
2023-10-06T10:24:36.051+0100 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph:
data.alz_archetype.test - *terraform.NodeValidatableResource
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
------
2023-10-06T10:24:36.051+0100 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2023-10-06T10:24:36.051+0100 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
data.alz_archetype.test - *terraform.NodeValidatableResource
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
------
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.RemovedModuleTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.RemovedModuleTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2023-10-06T10:24:36.051+0100 [TRACE] terraform.contextPlugins: Initializing provider "registry.terraform.io/azure/alz" to read its schema
2023-10-06T10:24:36.051+0100 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider["registry.terraform.io/azure/alz"]
2023-10-06T10:24:36.051+0100 [TRACE] terraform.contextPlugins: Initializing provider "registry.terraform.io/azure/alz" to read its schema
2023-10-06T10:24:36.051+0100 [TRACE] AttachSchemaTransformer: attaching resource schema to data.alz_archetype.test
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.ModuleExpansionTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.ModuleExpansionTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.ExternalReferenceTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.ExternalReferenceTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2023-10-06T10:24:36.051+0100 [DEBUG] ReferenceTransformer: "data.alz_archetype.test" references: []
2023-10-06T10:24:36.051+0100 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/azure/alz\"]" references: []
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.AttachDependenciesTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.AttachDependenciesTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.attachDataResourceDependsOnTransformer
2023-10-06T10:24:36.051+0100 [TRACE] attachDataDependenciesTransformer: data.alz_archetype.test depends on []
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.attachDataResourceDependsOnTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.DestroyEdgeTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.DestroyEdgeTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.pruneUnusedNodesTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.pruneUnusedNodesTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.TargetsTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.ForcedCBDTransformer
2023-10-06T10:24:36.051+0100 [TRACE] Completed graph transform *terraform.ForcedCBDTransformer (no changes)
2023-10-06T10:24:36.051+0100 [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2023-10-06T10:24:36.052+0100 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
data.alz_archetype.test - *terraform.NodeValidatableResource
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/azure/alz"] (close) - *terraform.graphNodeCloseProvider
data.alz_archetype.test - *terraform.NodeValidatableResource
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
------
2023-10-06T10:24:36.052+0100 [TRACE] Executing graph transform *terraform.CloseRootModuleTransformer
2023-10-06T10:24:36.052+0100 [TRACE] Completed graph transform *terraform.CloseRootModuleTransformer with new graph:
data.alz_archetype.test - *terraform.NodeValidatableResource
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/azure/alz"] (close) - *terraform.graphNodeCloseProvider
data.alz_archetype.test - *terraform.NodeValidatableResource
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
root - *terraform.nodeCloseModule
provider["registry.terraform.io/azure/alz"] (close) - *terraform.graphNodeCloseProvider
------
2023-10-06T10:24:36.052+0100 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2023-10-06T10:24:36.052+0100 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
data.alz_archetype.test - *terraform.NodeValidatableResource
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/azure/alz"] - *terraform.NodeApplyableProvider
provider["registry.terraform.io/azure/alz"] (close) - *terraform.graphNodeCloseProvider
data.alz_archetype.test - *terraform.NodeValidatableResource
root - *terraform.nodeCloseModule
provider["registry.terraform.io/azure/alz"] (close) - *terraform.graphNodeCloseProvider
------
2023-10-06T10:24:36.052+0100 [DEBUG] Starting graph walk: walkValidate
2023-10-06T10:24:36.052+0100 [TRACE] vertex "provider[\"registry.terraform.io/azure/alz\"]": starting visit (*terraform.NodeApplyableProvider)
2023-10-06T10:24:36.052+0100 [DEBUG] created provider logger: level=trace
2023-10-06T10:24:36.052+0100 [INFO] provider: configuring client automatic mTLS
2023-10-06T10:24:36.055+0100 [DEBUG] provider: starting plugin: path=/home/matt/code/go/bin/terraform-provider-alz args=["/home/matt/code/go/bin/terraform-provider-alz"]
2023-10-06T10:24:36.055+0100 [DEBUG] provider: plugin started: path=/home/matt/code/go/bin/terraform-provider-alz pid=16347
2023-10-06T10:24:36.055+0100 [DEBUG] provider: waiting for RPC address: path=/home/matt/code/go/bin/terraform-provider-alz
2023-10-06T10:24:36.057+0100 [INFO] provider.terraform-provider-alz: configuring server automatic mTLS: timestamp="2023-10-06T10:24:36.057+0100"
2023-10-06T10:24:36.066+0100 [DEBUG] provider: using plugin: version=6
2023-10-06T10:24:36.066+0100 [DEBUG] provider.terraform-provider-alz: plugin address: address=/tmp/plugin1222043777 network=unix timestamp="2023-10-06T10:24:36.066+0100"
2023-10-06T10:24:36.072+0100 [TRACE] BuiltinEvalContext: Initialized "provider[\"registry.terraform.io/azure/alz\"]" provider for provider["registry.terraform.io/azure/alz"]
2023-10-06T10:24:36.072+0100 [TRACE] GRPCProvider.v6: GetProviderSchema
2023-10-06T10:24:36.072+0100 [TRACE] GRPCProvider.v6: returning cached schema: EXTRA_VALUE_AT_END=registry.terraform.io/azure/alz
2023-10-06T10:24:36.072+0100 [TRACE] NodeApplyableProvider: validating configuration for provider["registry.terraform.io/azure/alz"]
2023-10-06T10:24:36.072+0100 [TRACE] buildProviderConfig for provider["registry.terraform.io/azure/alz"]: using explicit config only
2023-10-06T10:24:36.072+0100 [TRACE] provider.stdio: waiting for stdio data
2023-10-06T10:24:36.072+0100 [TRACE] vertex "provider[\"registry.terraform.io/azure/alz\"]": visit complete
2023-10-06T10:24:36.072+0100 [TRACE] vertex "data.alz_archetype.test": starting visit (*terraform.NodeValidatableResource)
2023-10-06T10:24:36.072+0100 [TRACE] GRPCProvider.v6: GetProviderSchema
2023-10-06T10:24:36.072+0100 [TRACE] GRPCProvider.v6: returning cached schema: EXTRA_VALUE_AT_END=registry.terraform.io/azure/alz
2023-10-06T10:24:36.072+0100 [DEBUG] skipping FixUpBlockAttrs
2023-10-06T10:24:36.072+0100 [TRACE] GRPCProvider.v6: ValidateDataResourceConfig
2023-10-06T10:24:36.072+0100 [TRACE] GRPCProvider.v6: GetProviderSchema
2023-10-06T10:24:36.072+0100 [TRACE] GRPCProvider.v6: returning cached schema: EXTRA_VALUE_AT_END=registry.terraform.io/azure/alz
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Received request: @module=sdk.proto tf_proto_version=6.4 @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/tf6server/server.go:658 tf_data_source_type=alz_archetype tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 tf_rpc=ValidateDataResourceConfig timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Skipping protocol data file writing because no data directory is set. Use the TF_LOG_SDK_PROTO_DATA_DIR environment variable to enable this functionality.: @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/internal/logging/protocol_data.go:41 tf_data_source_type=alz_archetype tf_proto_version=6.4 tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 @module=sdk.proto tf_rpc=ValidateDataResourceConfig timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Sending request downstream: @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/tf6serverlogging/downstream_request.go:20 tf_data_source_type=alz_archetype tf_rpc=ValidateDataResourceConfig @module=sdk.proto tf_proto_version=6.4 tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Checking DataSourceTypes lock: tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 tf_rpc=ValidateDataResourceConfig @module=sdk.framework tf_data_source_type=alz_archetype @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:135 tf_provider_addr=registry.terraform.io/azure/alz timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Calling provider defined Provider DataSources: tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 tf_rpc=ValidateDataResourceConfig @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:145 @module=sdk.framework tf_data_source_type=alz_archetype tf_provider_addr=registry.terraform.io/azure/alz timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Called provider defined Provider DataSources: tf_rpc=ValidateDataResourceConfig @module=sdk.framework tf_provider_addr=registry.terraform.io/azure/alz @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:147 tf_data_source_type=alz_archetype tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Found data source type: tf_data_source_type=_archetype tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 tf_rpc=ValidateDataResourceConfig @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:168 @module=sdk.framework timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Found data source type: tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 tf_rpc=ValidateDataResourceConfig @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.4.0/internal/fwserver/server.go:168 @module=sdk.framework tf_data_source_type=_archetype_keys tf_provider_addr=registry.terraform.io/azure/alz timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Received downstream response: diagnostic_warning_count=0 tf_provider_addr=registry.terraform.io/azure/alz tf_req_duration_ms=0 diagnostic_error_count=1 tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 @module=sdk.proto tf_data_source_type=alz_archetype tf_proto_version=6.4 tf_rpc=ValidateDataResourceConfig @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/tf6serverlogging/downstream_request.go:40 timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [ERROR] provider.terraform-provider-alz: Response contains error diagnostic: diagnostic_detail="No data source type named \"alz_archetype\" was found in the provider." tf_data_source_type=alz_archetype tf_proto_version=6.4 tf_rpc=ValidateDataResourceConfig @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="Data Source Type Not Found" tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [TRACE] provider.terraform-provider-alz: Served request: @caller=/home/matt/code/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/tf6server/server.go:678 tf_data_source_type=alz_archetype @module=sdk.proto tf_proto_version=6.4 tf_provider_addr=registry.terraform.io/azure/alz tf_req_id=e8204a97-5176-087a-db71-8a6dcee71019 tf_rpc=ValidateDataResourceConfig timestamp="2023-10-06T10:24:36.073+0100"
2023-10-06T10:24:36.073+0100 [ERROR] vertex "data.alz_archetype.test" error: Data Source Type Not Found
2023-10-06T10:24:36.073+0100 [TRACE] vertex "data.alz_archetype.test": visit complete, with errors
2023-10-06T10:24:36.073+0100 [TRACE] dag/walk: upstream of "provider[\"registry.terraform.io/azure/alz\"] (close)" errored, so skipping
2023-10-06T10:24:36.073+0100 [TRACE] dag/walk: upstream of "root" errored, so skipping
2023-10-06T10:24:36.073+0100 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2023-10-06T10:24:36.074+0100 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
╷
│ Error: Data Source Type Not Found
│
│ with data.alz_archetype.test,
│ on main.tf line 13, in data "alz_archetype" "test":
│ 13: data "alz_archetype" "test" {
│
│ No data source type named "alz_archetype" was found in the provider.
╵
2023-10-06T10:24:36.074+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-10-06T10:24:36.075+0100 [DEBUG] provider: plugin process exited: path=/home/matt/code/go/bin/terraform-provider-alz pid=16347
2023-10-06T10:24:36.075+0100 [DEBUG] provider: plugin exited
Expected Behavior
Plan should have executed successfully.
With Terraform versions < 1.6.0 this is exactly what happens
Actual Behavior
Error:
│ Error: Data Source Type Not Found
│
│ with data.alz_archetype.test,
│ on main.tf line 13, in data "alz_archetype" "test":
│ 13: data "alz_archetype" "test" {
│
│ No data source type named "alz_archetype" was found in the provider.
Steps to Reproduce
Publish a provider to the registry
Checkout provider code and run make to install a local development copy
Configure dev_overrides using $/.terraformrc (see additional context below)
terraform init (using config above)
terraform plan
Additional Context
dev_overrides in place
❯ cat ~/.terraformrc
provider_installation {
# Use /home/developer/go/bin as an overridden package directory
# for the azure/alz provider. This disables the version and checksum
# verifications for this provider and forces Terraform to look for the
# azurerm provider plugin in the given directory.
dev_overrides {
"azure/alz" = "/home/matt/code/go/bin"
}
# For all other providers, install them directly from their origin provider
# registries as normal. If you omit this, Terraform will _only_ use
# the dev_overrides block, and so no other providers will be available.
direct {}
}
References
No response
The text was updated successfully, but these errors were encountered:
I think this is the same root issue as #33990, which is being investigated upstream in the provider framework, so I'm going to close it as a duplicate. Note from the other issue:
Based on the information in the framework's changelog it seems like building your providers using framework release v1.3.5 should avoid this problem for now, since the problematic use of the new protocol feature came in v1.4.0.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
Debug Output
Debug output
Expected Behavior
Plan should have executed successfully.
With Terraform versions < 1.6.0 this is exactly what happens
Actual Behavior
Error:
Steps to Reproduce
make
to install a local development copydev_overrides
using$/.terraformrc
(see additional context below)terraform init
(using config above)terraform plan
Additional Context
dev_overrides in place
References
No response
The text was updated successfully, but these errors were encountered: