fix: Fix dangling references in provisioner/terraform/testdata (#3193)

This commit is contained in:
David Wahler
2022-07-26 12:04:21 -05:00
committed by GitHub
parent 8115a11e58
commit fbd1a272fe
25 changed files with 165 additions and 165 deletions

View File

@ -14,5 +14,5 @@ resource "coder_agent" "main" {
module "module" {
source = "./module"
script = coder_agent.dev.init_script
script = coder_agent.main.init_script
}

View File

@ -2,19 +2,19 @@ digraph {
compound = "true"
newrank = "true"
subgraph "root" {
"[root] coder_agent.dev (expand)" [label = "coder_agent.dev", shape = "box"]
"[root] coder_agent.main (expand)" [label = "coder_agent.main", shape = "box"]
"[root] module.module.data.null_data_source.script (expand)" [label = "module.module.data.null_data_source.script", shape = "box"]
"[root] module.module.null_resource.example (expand)" [label = "module.module.null_resource.example", shape = "box"]
"[root] provider[\"registry.terraform.io/coder/coder\"]" [label = "provider[\"registry.terraform.io/coder/coder\"]", shape = "diamond"]
"[root] provider[\"registry.terraform.io/hashicorp/null\"]" [label = "provider[\"registry.terraform.io/hashicorp/null\"]", shape = "diamond"]
"[root] coder_agent.dev (expand)" -> "[root] provider[\"registry.terraform.io/coder/coder\"]"
"[root] coder_agent.main (expand)" -> "[root] provider[\"registry.terraform.io/coder/coder\"]"
"[root] module.module (close)" -> "[root] module.module.null_resource.example (expand)"
"[root] module.module.data.null_data_source.script (expand)" -> "[root] module.module.var.script (expand)"
"[root] module.module.data.null_data_source.script (expand)" -> "[root] provider[\"registry.terraform.io/hashicorp/null\"]"
"[root] module.module.null_resource.example (expand)" -> "[root] module.module.data.null_data_source.script (expand)"
"[root] module.module.var.script (expand)" -> "[root] coder_agent.dev (expand)"
"[root] module.module.var.script (expand)" -> "[root] coder_agent.main (expand)"
"[root] module.module.var.script (expand)" -> "[root] module.module (expand)"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_agent.dev (expand)"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_agent.main (expand)"
"[root] provider[\"registry.terraform.io/hashicorp/null\"] (close)" -> "[root] module.module.null_resource.example (expand)"
"[root] root" -> "[root] module.module (close)"
"[root] root" -> "[root] provider[\"registry.terraform.io/coder/coder\"] (close)"

View File

@ -1,14 +1,14 @@
{
"format_version": "1.1",
"terraform_version": "1.2.2",
"terraform_version": "1.2.5",
"planned_values": {
"root_module": {
"resources": [
{
"address": "coder_agent.dev",
"address": "coder_agent.main",
"mode": "managed",
"type": "coder_agent",
"name": "dev",
"name": "main",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 0,
"values": {
@ -60,10 +60,10 @@
},
"resource_changes": [
{
"address": "coder_agent.dev",
"address": "coder_agent.main",
"mode": "managed",
"type": "coder_agent",
"name": "dev",
"name": "main",
"provider_name": "registry.terraform.io/coder/coder",
"change": {
"actions": [
@ -158,10 +158,10 @@
"root_module": {
"resources": [
{
"address": "coder_agent.dev",
"address": "coder_agent.main",
"mode": "managed",
"type": "coder_agent",
"name": "dev",
"name": "main",
"provider_config_key": "coder",
"expressions": {
"arch": {
@ -180,8 +180,8 @@
"expressions": {
"script": {
"references": [
"coder_agent.dev.init_script",
"coder_agent.dev"
"coder_agent.main.init_script",
"coder_agent.main"
]
}
},
@ -224,7 +224,7 @@
},
"relevant_attributes": [
{
"resource": "coder_agent.dev",
"resource": "coder_agent.main",
"attribute": [
"init_script"
]

View File

@ -2,19 +2,19 @@ digraph {
compound = "true"
newrank = "true"
subgraph "root" {
"[root] coder_agent.dev (expand)" [label = "coder_agent.dev", shape = "box"]
"[root] coder_agent.main (expand)" [label = "coder_agent.main", shape = "box"]
"[root] module.module.data.null_data_source.script (expand)" [label = "module.module.data.null_data_source.script", shape = "box"]
"[root] module.module.null_resource.example (expand)" [label = "module.module.null_resource.example", shape = "box"]
"[root] provider[\"registry.terraform.io/coder/coder\"]" [label = "provider[\"registry.terraform.io/coder/coder\"]", shape = "diamond"]
"[root] provider[\"registry.terraform.io/hashicorp/null\"]" [label = "provider[\"registry.terraform.io/hashicorp/null\"]", shape = "diamond"]
"[root] coder_agent.dev (expand)" -> "[root] provider[\"registry.terraform.io/coder/coder\"]"
"[root] coder_agent.main (expand)" -> "[root] provider[\"registry.terraform.io/coder/coder\"]"
"[root] module.module (close)" -> "[root] module.module.null_resource.example (expand)"
"[root] module.module.data.null_data_source.script (expand)" -> "[root] module.module.var.script (expand)"
"[root] module.module.data.null_data_source.script (expand)" -> "[root] provider[\"registry.terraform.io/hashicorp/null\"]"
"[root] module.module.null_resource.example (expand)" -> "[root] module.module.data.null_data_source.script (expand)"
"[root] module.module.var.script (expand)" -> "[root] coder_agent.dev (expand)"
"[root] module.module.var.script (expand)" -> "[root] coder_agent.main (expand)"
"[root] module.module.var.script (expand)" -> "[root] module.module (expand)"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_agent.dev (expand)"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_agent.main (expand)"
"[root] provider[\"registry.terraform.io/hashicorp/null\"] (close)" -> "[root] module.module.null_resource.example (expand)"
"[root] root" -> "[root] module.module (close)"
"[root] root" -> "[root] provider[\"registry.terraform.io/coder/coder\"] (close)"

View File

@ -1,14 +1,14 @@
{
"format_version": "1.0",
"terraform_version": "1.2.2",
"terraform_version": "1.2.5",
"values": {
"root_module": {
"resources": [
{
"address": "coder_agent.dev",
"address": "coder_agent.main",
"mode": "managed",
"type": "coder_agent",
"name": "dev",
"name": "main",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 0,
"values": {
@ -16,11 +16,11 @@
"auth": "token",
"dir": null,
"env": null,
"id": "66fed4b4-2246-4c0f-8e55-74e109ee0603",
"id": "78098841-3d6c-4aa7-9d3c-6e4c9be7e2df",
"init_script": "",
"os": "linux",
"startup_script": null,
"token": "c7f7d527-3eab-4f77-8c0f-05f543bce5c1"
"token": "605d8d2c-a720-4422-9410-62b41e3e6565"
},
"sensitive_values": {}
}
@ -44,7 +44,7 @@
"outputs": {
"script": ""
},
"random": "2465369318401710566"
"random": "3340396623875729305"
},
"sensitive_values": {
"inputs": {},
@ -59,12 +59,12 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "354396519773748320",
"id": "831556400374221454",
"triggers": null
},
"sensitive_values": {},
"depends_on": [
"coder_agent.dev",
"coder_agent.main",
"module.module.data.null_data_source.script"
]
}