feat: improve resources_monitoring for OOM & OOD monitoring (#16241)

As requested for [this
issue](https://github.com/coder/internal/issues/245) we need to have a
new resource `resources_monitoring` in the agent.

It needs to be parsed from the provisioner and inserted into a new db
table.
This commit is contained in:
Vincent Vielle
2025-02-04 18:45:33 +01:00
committed by GitHub
parent 8c265018c4
commit 7cbd77fd94
76 changed files with 3170 additions and 1041 deletions
+41
View File
@@ -56,6 +56,23 @@ type agentAttributes struct {
Metadata []agentMetadata `mapstructure:"metadata"`
DisplayApps []agentDisplayAppsAttributes `mapstructure:"display_apps"`
Order int64 `mapstructure:"order"`
ResourcesMonitoring []agentResourcesMonitoring `mapstructure:"resources_monitoring"`
}
type agentResourcesMonitoring struct {
Memory []agentMemoryResourceMonitor `mapstructure:"memory"`
Volumes []agentVolumeResourceMonitor `mapstructure:"volume"`
}
type agentMemoryResourceMonitor struct {
Enabled bool `mapstructure:"enabled"`
Threshold int32 `mapstructure:"threshold"`
}
type agentVolumeResourceMonitor struct {
Path string `mapstructure:"path"`
Enabled bool `mapstructure:"enabled"`
Threshold int32 `mapstructure:"threshold"`
}
type agentDisplayAppsAttributes struct {
@@ -239,6 +256,29 @@ func ConvertState(ctx context.Context, modules []*tfjson.StateModule, rawGraph s
}
}
resourcesMonitoring := &proto.ResourcesMonitoring{
Volumes: make([]*proto.VolumeResourceMonitor, 0),
}
for _, resource := range attrs.ResourcesMonitoring {
for _, memoryResource := range resource.Memory {
resourcesMonitoring.Memory = &proto.MemoryResourceMonitor{
Enabled: memoryResource.Enabled,
Threshold: memoryResource.Threshold,
}
}
}
for _, resource := range attrs.ResourcesMonitoring {
for _, volume := range resource.Volumes {
resourcesMonitoring.Volumes = append(resourcesMonitoring.Volumes, &proto.VolumeResourceMonitor{
Path: volume.Path,
Enabled: volume.Enabled,
Threshold: volume.Threshold,
})
}
}
agent := &proto.Agent{
Name: tfResource.Name,
Id: attrs.ID,
@@ -249,6 +289,7 @@ func ConvertState(ctx context.Context, modules []*tfjson.StateModule, rawGraph s
ConnectionTimeoutSeconds: attrs.ConnectionTimeoutSeconds,
TroubleshootingUrl: attrs.TroubleshootingURL,
MotdFile: attrs.MOTDFile,
ResourcesMonitoring: resourcesMonitoring,
Metadata: metadata,
DisplayApps: displayApps,
Order: attrs.Order,
+93
View File
@@ -66,6 +66,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
@@ -83,6 +84,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}, {
Name: "second",
@@ -101,6 +103,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_InstanceId{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
@@ -117,6 +120,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
ModulePath: "module.module",
}},
@@ -134,6 +138,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}, {
Name: "dev2",
OperatingSystem: "darwin",
@@ -142,6 +147,7 @@ func TestConvertResources(t *testing.T) {
ConnectionTimeoutSeconds: 1,
MotdFile: "/etc/motd",
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
Scripts: []*proto.Script{{
Icon: "/emojis/25c0.png",
DisplayName: "Shutdown Script",
@@ -157,6 +163,7 @@ func TestConvertResources(t *testing.T) {
ConnectionTimeoutSeconds: 120,
TroubleshootingUrl: "https://coder.com/troubleshoot",
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}, {
Name: "dev4",
OperatingSystem: "linux",
@@ -164,6 +171,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
@@ -205,6 +213,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
@@ -231,6 +240,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
@@ -265,6 +275,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}, {
Name: "dev2",
@@ -284,6 +295,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
@@ -308,6 +320,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}, {
Name: "dev2",
@@ -325,6 +338,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}, {
Name: "env1",
@@ -337,6 +351,75 @@ func TestConvertResources(t *testing.T) {
Type: "coder_env",
}},
},
"multiple-agents-multiple-monitors": {
resources: []*proto.Resource{{
Name: "dev",
Type: "null_resource",
Agents: []*proto.Agent{
{
Name: "dev1",
OperatingSystem: "linux",
Architecture: "amd64",
Apps: []*proto.App{
{
Slug: "app1",
DisplayName: "app1",
// Subdomain defaults to false if unspecified.
Subdomain: false,
OpenIn: proto.AppOpenIn_SLIM_WINDOW,
},
{
Slug: "app2",
DisplayName: "app2",
Subdomain: true,
Healthcheck: &proto.Healthcheck{
Url: "http://localhost:13337/healthz",
Interval: 5,
Threshold: 6,
},
OpenIn: proto.AppOpenIn_SLIM_WINDOW,
},
},
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{
Memory: &proto.MemoryResourceMonitor{
Enabled: true,
Threshold: 80,
},
},
},
{
Name: "dev2",
OperatingSystem: "linux",
Architecture: "amd64",
Apps: []*proto.App{},
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{
Memory: &proto.MemoryResourceMonitor{
Enabled: true,
Threshold: 99,
},
Volumes: []*proto.VolumeResourceMonitor{
{
Path: "volume2",
Enabled: false,
Threshold: 50,
},
{
Path: "volume1",
Enabled: true,
Threshold: 80,
},
},
},
},
},
}},
},
"multiple-agents-multiple-scripts": {
resources: []*proto.Resource{{
Name: "dev1",
@@ -360,6 +443,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}, {
Name: "dev2",
@@ -378,6 +462,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
@@ -417,6 +502,7 @@ func TestConvertResources(t *testing.T) {
}},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
@@ -468,6 +554,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
Scripts: []*proto.Script{{
DisplayName: "Startup Script",
RunOnStart: true,
@@ -490,6 +577,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
parameters: []*proto.RichParameter{{
@@ -569,6 +657,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
parameters: []*proto.RichParameter{{
@@ -595,6 +684,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
parameters: []*proto.RichParameter{{
@@ -648,6 +738,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &displayApps,
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
externalAuthProviders: []*proto.ExternalAuthProviderResource{{Id: "github"}, {Id: "gitlab", Optional: true}},
@@ -666,6 +757,7 @@ func TestConvertResources(t *testing.T) {
VscodeInsiders: true,
WebTerminal: true,
},
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
@@ -680,6 +772,7 @@ func TestConvertResources(t *testing.T) {
Auth: &proto.Agent_Token{},
ConnectionTimeoutSeconds: 120,
DisplayApps: &proto.DisplayApps{},
ResourcesMonitoring: &proto.ResourcesMonitoring{},
}},
}},
},
+1 -1
View File
@@ -259,7 +259,7 @@
]
}
],
"timestamp": "2025-01-28T15:12:27Z",
"timestamp": "2025-01-29T22:47:46Z",
"applyable": true,
"complete": true,
"errored": false
+4 -4
View File
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "c559c8be-3b52-444a-bf51-81d270002ec6",
"id": "14f0eb08-1bdb-4d48-ab20-e06584ee5b68",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "ddc9b3fb-9fb8-4a87-ac35-79854980d9e8",
"token": "454fffe5-3c59-4a9e-80a0-0d1644ce3b24",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -68,7 +68,7 @@
"outputs": {
"script": ""
},
"random": "7258064144792284733"
"random": "8389680299908922676"
},
"sensitive_values": {
"inputs": {},
@@ -83,7 +83,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "229848906584483141",
"id": "8124127383117450432",
"triggers": null
},
"sensitive_values": {},
@@ -204,7 +204,7 @@
]
}
},
"timestamp": "2025-01-28T15:12:29Z",
"timestamp": "2025-01-29T22:47:48Z",
"applyable": true,
"complete": true,
"errored": false
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "03e2b129-b68a-4ef2-8f7b-9d7d5f37ca53",
"id": "038d5038-be85-4609-bde3-56b7452e4386",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "654a785d-f5dc-4900-91a2-6b147e50e646",
"token": "e570d762-5584-4192-a474-be9e137b2f09",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -56,7 +56,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "2274350610501479414",
"id": "690495753077748083",
"triggers": null
},
"sensitive_values": {},
@@ -73,7 +73,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "7072775735272284574",
"id": "3238567980725122951",
"triggers": null
},
"sensitive_values": {},
@@ -204,7 +204,7 @@
]
}
},
"timestamp": "2025-01-28T15:12:31Z",
"timestamp": "2025-01-29T22:47:50Z",
"applyable": true,
"complete": true,
"errored": false
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "358633fb-7027-405f-89f2-e5af0d8b20ce",
"id": "be15a1b3-f041-4471-9dec-9784c68edb26",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "be3fe571-825b-49f6-83a1-c1559fb5fab2",
"token": "df2580ad-59cc-48fb-bb21-40a8be5a5a66",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -56,7 +56,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "6032937966896590151",
"id": "9103672483967127580",
"triggers": null
},
"sensitive_values": {},
@@ -72,7 +72,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "2643104793080563075",
"id": "4372402015997897970",
"triggers": null
},
"sensitive_values": {},
@@ -203,7 +203,7 @@
]
}
},
"timestamp": "2025-01-28T15:12:34Z",
"timestamp": "2025-01-29T22:47:53Z",
"applyable": true,
"complete": true,
"errored": false
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "8952fd46-e4f8-4cc0-952e-1e5432cba8b0",
"id": "398e27d3-10cc-4522-9144-34658eedad0e",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "dc0ec51c-31b0-4231-9c37-3ba3612aab3d",
"token": "33068dbe-54d7-45eb-bfe5-87a9756802e2",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -56,7 +56,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "7702081486633943931",
"id": "5682617535476100233",
"triggers": null
},
"sensitive_values": {},
+1 -1
View File
@@ -203,7 +203,7 @@
]
}
},
"timestamp": "2025-01-28T15:12:33Z",
"timestamp": "2025-01-29T22:47:52Z",
"applyable": true,
"complete": true,
"errored": false
+3 -3
View File
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "98465962-626d-429d-b741-6a82dc619290",
"id": "810cdd01-a27d-442f-9e69-bdaecced8a59",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "69fbb7df-37e7-455e-8a84-59387b71a13b",
"token": "fade1b71-d52b-4ef2-bb05-961f7795bab9",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -56,7 +56,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "3493181194980203436",
"id": "5174735461860530782",
"triggers": null
},
"sensitive_values": {},
@@ -227,7 +227,7 @@
]
}
},
"timestamp": "2025-01-28T15:12:36Z",
"timestamp": "2025-01-29T22:47:55Z",
"applyable": true,
"complete": true,
"errored": false
@@ -54,7 +54,7 @@
}
],
"env": null,
"id": "bc3376e8-2bee-4051-aa2b-4ebb0a23ed36",
"id": "7ead336b-d366-4991-b38d-bdb8b9333ae9",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -64,7 +64,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "7e184d36-e137-404f-8316-e3d436ea5ea1",
"token": "a3d2c620-f065-4b29-ae58-370292e787d4",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -84,7 +84,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "2888417441231317883",
"id": "3060850815800759131",
"triggers": null
},
"sensitive_values": {},
+1 -1
View File
@@ -224,7 +224,7 @@
]
}
],
"timestamp": "2025-01-28T15:12:38Z",
"timestamp": "2025-01-29T22:47:57Z",
"applyable": true,
"complete": true,
"errored": false
+5 -5
View File
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "e159f254-a48c-4880-9137-431f128a74f9",
"id": "c6e99a38-f10b-4242-a7c6-bd9186008b9d",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "403743af-9b14-4e59-abea-fdc83ba245ca",
"token": "ecddacca-df83-4dd2-b6cb-71f439e9e5f5",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -56,8 +56,8 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 0,
"values": {
"agent_id": "e159f254-a48c-4880-9137-431f128a74f9",
"id": "1be21476-70a7-43d7-98c4-eaa0a4a41382",
"agent_id": "c6e99a38-f10b-4242-a7c6-bd9186008b9d",
"id": "0ed215f9-07b0-455f-828d-faee5f63ea93",
"instance_id": "example"
},
"sensitive_values": {},
@@ -73,7 +73,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "3205865520469319314",
"id": "1340003819945612525",
"triggers": null
},
"sensitive_values": {},
+1 -1
View File
@@ -326,7 +326,7 @@
]
}
],
"timestamp": "2025-01-28T15:12:40Z",
"timestamp": "2025-01-29T22:47:59Z",
"applyable": true,
"complete": true,
"errored": false
+7 -7
View File
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "4a06e166-5a7e-4092-a3df-4f1a3004f9be",
"id": "18098e15-2e8b-4c83-9362-0823834ae628",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "c02dc689-b086-42d1-9224-43a80b272b09",
"token": "59691c9e-bf9e-4c93-9768-ba3582c68727",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -57,14 +57,14 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "4a06e166-5a7e-4092-a3df-4f1a3004f9be",
"agent_id": "18098e15-2e8b-4c83-9362-0823834ae628",
"command": null,
"display_name": "app1",
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"id": "83027af7-2f83-4b67-bc31-1a03e9638854",
"id": "8f031ab5-e051-4eff-9f7e-233f5825c3fd",
"open_in": "slim-window",
"order": null,
"share": "owner",
@@ -88,14 +88,14 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "4a06e166-5a7e-4092-a3df-4f1a3004f9be",
"agent_id": "18098e15-2e8b-4c83-9362-0823834ae628",
"command": null,
"display_name": "app2",
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"id": "f80e5b41-bae3-4837-9bb7-8c6f3f263f44",
"id": "5462894e-7fdc-4fd0-8715-7829e53efea2",
"open_in": "slim-window",
"order": null,
"share": "owner",
@@ -118,7 +118,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "291249994602235015",
"id": "2699316377754222096",
"triggers": null
},
"sensitive_values": {},
@@ -573,19 +573,19 @@
},
"relevant_attributes": [
{
"resource": "coder_agent.dev2",
"resource": "coder_agent.dev1",
"attribute": [
"id"
]
},
{
"resource": "coder_agent.dev1",
"resource": "coder_agent.dev2",
"attribute": [
"id"
]
}
],
"timestamp": "2025-01-28T15:12:43Z",
"timestamp": "2025-01-29T22:48:03Z",
"applyable": true,
"complete": true,
"errored": false
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "abbe0827-18fe-4978-97bc-7b5282a24264",
"id": "00794e64-40d3-43df-885a-4b1cc5f5b965",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "89ff8dd5-395b-41c5-933b-bcdc520c98ed",
"token": "7c0a6e5e-dd2c-46e4-a5f5-f71aae7515c3",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -70,7 +70,7 @@
}
],
"env": null,
"id": "c459a282-0b66-4bd3-8571-5e2e9391578a",
"id": "1b8ddc14-25c2-4eab-b282-71b12d45de73",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -80,7 +80,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "daa8d077-285a-40fa-a8fb-867d7129a5bc",
"token": "39497aa1-11a1-40c0-854d-554c2e27ef77",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -100,14 +100,14 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "abbe0827-18fe-4978-97bc-7b5282a24264",
"agent_id": "00794e64-40d3-43df-885a-4b1cc5f5b965",
"command": null,
"display_name": null,
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"id": "a6353ab2-3b98-42d8-9f6a-3076de30901b",
"id": "c9cf036f-5fd9-408a-8c28-90cde4c5b0cf",
"open_in": "slim-window",
"order": null,
"share": "owner",
@@ -130,7 +130,7 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "abbe0827-18fe-4978-97bc-7b5282a24264",
"agent_id": "00794e64-40d3-43df-885a-4b1cc5f5b965",
"command": null,
"display_name": null,
"external": false,
@@ -143,7 +143,7 @@
],
"hidden": false,
"icon": null,
"id": "5e88d032-507a-42a6-beec-6e4347c3adf9",
"id": "e40999b2-8ceb-4e35-962b-c0b7b95c8bc8",
"open_in": "slim-window",
"order": null,
"share": "owner",
@@ -168,14 +168,14 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "c459a282-0b66-4bd3-8571-5e2e9391578a",
"agent_id": "1b8ddc14-25c2-4eab-b282-71b12d45de73",
"command": null,
"display_name": null,
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"id": "b6e356de-041a-462b-81e3-c0d10dd0d0b8",
"id": "4e61c245-271a-41e1-9a37-2badf68bf5cd",
"open_in": "slim-window",
"order": null,
"share": "owner",
@@ -198,7 +198,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "3689009350968113540",
"id": "7796235346668423309",
"triggers": null
},
"sensitive_values": {},
@@ -214,7 +214,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "2490343974856468132",
"id": "8353198974918613541",
"triggers": null
},
"sensitive_values": {},
@@ -470,19 +470,19 @@
},
"relevant_attributes": [
{
"resource": "coder_agent.dev2",
"resource": "coder_agent.dev1",
"attribute": [
"id"
]
},
{
"resource": "coder_agent.dev1",
"resource": "coder_agent.dev2",
"attribute": [
"id"
]
}
],
"timestamp": "2025-01-28T15:12:45Z",
"timestamp": "2025-01-29T22:48:05Z",
"applyable": true,
"complete": true,
"errored": false
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "8a650370-c43d-47b7-8012-27eef203c154",
"id": "f1398cbc-4e67-4a0e-92b7-15dc33221872",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "c566f0a7-9926-460a-8f06-9ce4031859dc",
"token": "acbbabee-e370-4aba-b876-843fb10201e8",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -70,7 +70,7 @@
}
],
"env": null,
"id": "33300ef0-5b62-4e60-ae45-64d8784c8da4",
"id": "ea44429d-fc3c-4ea6-ba23-a997dc66cad8",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -80,7 +80,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "915682f8-647b-4856-b81c-4887aaab9dba",
"token": "51fea695-82dd-4ccd-bf25-2c55a82b4851",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -100,8 +100,8 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "8a650370-c43d-47b7-8012-27eef203c154",
"id": "8e3b8ee2-229d-4b8d-b1e2-f970d5fd2ef0",
"agent_id": "f1398cbc-4e67-4a0e-92b7-15dc33221872",
"id": "f8f7b3f7-5c4b-47b9-959e-32d2044329e3",
"name": "ENV_1",
"value": "Env 1"
},
@@ -118,8 +118,8 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "8a650370-c43d-47b7-8012-27eef203c154",
"id": "afd2e7c1-b580-4e83-9f02-d4a35448701b",
"agent_id": "f1398cbc-4e67-4a0e-92b7-15dc33221872",
"id": "b7171d98-09c9-4bc4-899d-4b7343cd86ca",
"name": "ENV_2",
"value": "Env 2"
},
@@ -136,8 +136,8 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "33300ef0-5b62-4e60-ae45-64d8784c8da4",
"id": "a5b91527-2a7e-4f3c-bc04-01ee322d2c91",
"agent_id": "ea44429d-fc3c-4ea6-ba23-a997dc66cad8",
"id": "84021f25-1736-4884-8e5c-553e9c1f6fa6",
"name": "ENV_3",
"value": "Env 3"
},
@@ -154,7 +154,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "5412697184517577000",
"id": "4901314428677246063",
"triggers": null
},
"sensitive_values": {},
@@ -170,7 +170,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "6595408937266951935",
"id": "3203010350140581146",
"triggers": null
},
"sensitive_values": {},
@@ -0,0 +1,67 @@
terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.22.0"
}
}
}
resource "coder_agent" "dev1" {
os = "linux"
arch = "amd64"
resources_monitoring {
memory {
enabled = true
threshold = 80
}
}
}
resource "coder_agent" "dev2" {
os = "linux"
arch = "amd64"
resources_monitoring {
memory {
enabled = true
threshold = 99
}
volume {
path = "volume1"
enabled = true
threshold = 80
}
volume {
path = "volume2"
enabled = false
threshold = 50
}
}
}
# app1 is for testing subdomain default.
resource "coder_app" "app1" {
agent_id = coder_agent.dev1.id
slug = "app1"
# subdomain should default to false.
# subdomain = false
}
# app2 tests that subdomaincan be true, and that healthchecks work.
resource "coder_app" "app2" {
agent_id = coder_agent.dev1.id
slug = "app2"
subdomain = true
healthcheck {
url = "http://localhost:13337/healthz"
interval = 5
threshold = 6
}
}
resource "null_resource" "dev" {
depends_on = [
coder_agent.dev1,
coder_agent.dev2
]
}
@@ -0,0 +1,26 @@
digraph {
compound = "true"
newrank = "true"
subgraph "root" {
"[root] coder_agent.dev1 (expand)" [label = "coder_agent.dev1", shape = "box"]
"[root] coder_agent.dev2 (expand)" [label = "coder_agent.dev2", shape = "box"]
"[root] coder_app.app1 (expand)" [label = "coder_app.app1", shape = "box"]
"[root] coder_app.app2 (expand)" [label = "coder_app.app2", shape = "box"]
"[root] null_resource.dev (expand)" [label = "null_resource.dev", 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.dev1 (expand)" -> "[root] provider[\"registry.terraform.io/coder/coder\"]"
"[root] coder_agent.dev2 (expand)" -> "[root] provider[\"registry.terraform.io/coder/coder\"]"
"[root] coder_app.app1 (expand)" -> "[root] coder_agent.dev1 (expand)"
"[root] coder_app.app2 (expand)" -> "[root] coder_agent.dev1 (expand)"
"[root] null_resource.dev (expand)" -> "[root] coder_agent.dev1 (expand)"
"[root] null_resource.dev (expand)" -> "[root] coder_agent.dev2 (expand)"
"[root] null_resource.dev (expand)" -> "[root] provider[\"registry.terraform.io/hashicorp/null\"]"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_agent.dev2 (expand)"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_app.app1 (expand)"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_app.app2 (expand)"
"[root] provider[\"registry.terraform.io/hashicorp/null\"] (close)" -> "[root] null_resource.dev (expand)"
"[root] root" -> "[root] provider[\"registry.terraform.io/coder/coder\"] (close)"
"[root] root" -> "[root] provider[\"registry.terraform.io/hashicorp/null\"] (close)"
}
}
@@ -0,0 +1,625 @@
{
"format_version": "1.2",
"terraform_version": "1.9.8",
"planned_values": {
"root_module": {
"resources": [
{
"address": "coder_agent.dev1",
"mode": "managed",
"type": "coder_agent",
"name": "dev1",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"arch": "amd64",
"auth": "token",
"connection_timeout": 120,
"dir": null,
"env": null,
"metadata": [],
"motd_file": null,
"order": null,
"os": "linux",
"resources_monitoring": [
{
"memory": [
{
"enabled": true,
"threshold": 80
}
],
"volume": []
}
],
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"troubleshooting_url": null
},
"sensitive_values": {
"display_apps": [],
"metadata": [],
"resources_monitoring": [
{
"memory": [
{}
],
"volume": []
}
],
"token": true
}
},
{
"address": "coder_agent.dev2",
"mode": "managed",
"type": "coder_agent",
"name": "dev2",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"arch": "amd64",
"auth": "token",
"connection_timeout": 120,
"dir": null,
"env": null,
"metadata": [],
"motd_file": null,
"order": null,
"os": "linux",
"resources_monitoring": [
{
"memory": [
{
"enabled": true,
"threshold": 99
}
],
"volume": [
{
"enabled": false,
"path": "volume2",
"threshold": 50
},
{
"enabled": true,
"path": "volume1",
"threshold": 80
}
]
}
],
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"troubleshooting_url": null
},
"sensitive_values": {
"display_apps": [],
"metadata": [],
"resources_monitoring": [
{
"memory": [
{}
],
"volume": [
{},
{}
]
}
],
"token": true
}
},
{
"address": "coder_app.app1",
"mode": "managed",
"type": "coder_app",
"name": "app1",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"command": null,
"display_name": null,
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"open_in": "slim-window",
"order": null,
"share": "owner",
"slug": "app1",
"subdomain": null,
"url": null
},
"sensitive_values": {
"healthcheck": []
}
},
{
"address": "coder_app.app2",
"mode": "managed",
"type": "coder_app",
"name": "app2",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"command": null,
"display_name": null,
"external": false,
"healthcheck": [
{
"interval": 5,
"threshold": 6,
"url": "http://localhost:13337/healthz"
}
],
"hidden": false,
"icon": null,
"open_in": "slim-window",
"order": null,
"share": "owner",
"slug": "app2",
"subdomain": true,
"url": null
},
"sensitive_values": {
"healthcheck": [
{}
]
}
},
{
"address": "null_resource.dev",
"mode": "managed",
"type": "null_resource",
"name": "dev",
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"triggers": null
},
"sensitive_values": {}
}
]
}
},
"resource_changes": [
{
"address": "coder_agent.dev1",
"mode": "managed",
"type": "coder_agent",
"name": "dev1",
"provider_name": "registry.terraform.io/coder/coder",
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"arch": "amd64",
"auth": "token",
"connection_timeout": 120,
"dir": null,
"env": null,
"metadata": [],
"motd_file": null,
"order": null,
"os": "linux",
"resources_monitoring": [
{
"memory": [
{
"enabled": true,
"threshold": 80
}
],
"volume": []
}
],
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"troubleshooting_url": null
},
"after_unknown": {
"display_apps": true,
"id": true,
"init_script": true,
"metadata": [],
"resources_monitoring": [
{
"memory": [
{}
],
"volume": []
}
],
"token": true
},
"before_sensitive": false,
"after_sensitive": {
"display_apps": [],
"metadata": [],
"resources_monitoring": [
{
"memory": [
{}
],
"volume": []
}
],
"token": true
}
}
},
{
"address": "coder_agent.dev2",
"mode": "managed",
"type": "coder_agent",
"name": "dev2",
"provider_name": "registry.terraform.io/coder/coder",
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"arch": "amd64",
"auth": "token",
"connection_timeout": 120,
"dir": null,
"env": null,
"metadata": [],
"motd_file": null,
"order": null,
"os": "linux",
"resources_monitoring": [
{
"memory": [
{
"enabled": true,
"threshold": 99
}
],
"volume": [
{
"enabled": false,
"path": "volume2",
"threshold": 50
},
{
"enabled": true,
"path": "volume1",
"threshold": 80
}
]
}
],
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"troubleshooting_url": null
},
"after_unknown": {
"display_apps": true,
"id": true,
"init_script": true,
"metadata": [],
"resources_monitoring": [
{
"memory": [
{}
],
"volume": [
{},
{}
]
}
],
"token": true
},
"before_sensitive": false,
"after_sensitive": {
"display_apps": [],
"metadata": [],
"resources_monitoring": [
{
"memory": [
{}
],
"volume": [
{},
{}
]
}
],
"token": true
}
}
},
{
"address": "coder_app.app1",
"mode": "managed",
"type": "coder_app",
"name": "app1",
"provider_name": "registry.terraform.io/coder/coder",
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"command": null,
"display_name": null,
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"open_in": "slim-window",
"order": null,
"share": "owner",
"slug": "app1",
"subdomain": null,
"url": null
},
"after_unknown": {
"agent_id": true,
"healthcheck": [],
"id": true
},
"before_sensitive": false,
"after_sensitive": {
"healthcheck": []
}
}
},
{
"address": "coder_app.app2",
"mode": "managed",
"type": "coder_app",
"name": "app2",
"provider_name": "registry.terraform.io/coder/coder",
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"command": null,
"display_name": null,
"external": false,
"healthcheck": [
{
"interval": 5,
"threshold": 6,
"url": "http://localhost:13337/healthz"
}
],
"hidden": false,
"icon": null,
"open_in": "slim-window",
"order": null,
"share": "owner",
"slug": "app2",
"subdomain": true,
"url": null
},
"after_unknown": {
"agent_id": true,
"healthcheck": [
{}
],
"id": true
},
"before_sensitive": false,
"after_sensitive": {
"healthcheck": [
{}
]
}
}
},
{
"address": "null_resource.dev",
"mode": "managed",
"type": "null_resource",
"name": "dev",
"provider_name": "registry.terraform.io/hashicorp/null",
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"triggers": null
},
"after_unknown": {
"id": true
},
"before_sensitive": false,
"after_sensitive": {}
}
}
],
"configuration": {
"provider_config": {
"coder": {
"name": "coder",
"full_name": "registry.terraform.io/coder/coder",
"version_constraint": "0.22.0"
},
"null": {
"name": "null",
"full_name": "registry.terraform.io/hashicorp/null"
}
},
"root_module": {
"resources": [
{
"address": "coder_agent.dev1",
"mode": "managed",
"type": "coder_agent",
"name": "dev1",
"provider_config_key": "coder",
"expressions": {
"arch": {
"constant_value": "amd64"
},
"os": {
"constant_value": "linux"
},
"resources_monitoring": [
{
"memory": [
{
"enabled": {
"constant_value": true
},
"threshold": {
"constant_value": 80
}
}
]
}
]
},
"schema_version": 1
},
{
"address": "coder_agent.dev2",
"mode": "managed",
"type": "coder_agent",
"name": "dev2",
"provider_config_key": "coder",
"expressions": {
"arch": {
"constant_value": "amd64"
},
"os": {
"constant_value": "linux"
},
"resources_monitoring": [
{
"memory": [
{
"enabled": {
"constant_value": true
},
"threshold": {
"constant_value": 99
}
}
],
"volume": [
{
"enabled": {
"constant_value": true
},
"path": {
"constant_value": "volume1"
},
"threshold": {
"constant_value": 80
}
},
{
"enabled": {
"constant_value": false
},
"path": {
"constant_value": "volume2"
},
"threshold": {
"constant_value": 50
}
}
]
}
]
},
"schema_version": 1
},
{
"address": "coder_app.app1",
"mode": "managed",
"type": "coder_app",
"name": "app1",
"provider_config_key": "coder",
"expressions": {
"agent_id": {
"references": [
"coder_agent.dev1.id",
"coder_agent.dev1"
]
},
"slug": {
"constant_value": "app1"
}
},
"schema_version": 1
},
{
"address": "coder_app.app2",
"mode": "managed",
"type": "coder_app",
"name": "app2",
"provider_config_key": "coder",
"expressions": {
"agent_id": {
"references": [
"coder_agent.dev1.id",
"coder_agent.dev1"
]
},
"healthcheck": [
{
"interval": {
"constant_value": 5
},
"threshold": {
"constant_value": 6
},
"url": {
"constant_value": "http://localhost:13337/healthz"
}
}
],
"slug": {
"constant_value": "app2"
},
"subdomain": {
"constant_value": true
}
},
"schema_version": 1
},
{
"address": "null_resource.dev",
"mode": "managed",
"type": "null_resource",
"name": "dev",
"provider_config_key": "null",
"schema_version": 0,
"depends_on": [
"coder_agent.dev1",
"coder_agent.dev2"
]
}
]
}
},
"relevant_attributes": [
{
"resource": "coder_agent.dev1",
"attribute": [
"id"
]
}
],
"timestamp": "2025-01-29T22:48:06Z",
"applyable": true,
"complete": true,
"errored": false
}
@@ -0,0 +1,26 @@
digraph {
compound = "true"
newrank = "true"
subgraph "root" {
"[root] coder_agent.dev1 (expand)" [label = "coder_agent.dev1", shape = "box"]
"[root] coder_agent.dev2 (expand)" [label = "coder_agent.dev2", shape = "box"]
"[root] coder_app.app1 (expand)" [label = "coder_app.app1", shape = "box"]
"[root] coder_app.app2 (expand)" [label = "coder_app.app2", shape = "box"]
"[root] null_resource.dev (expand)" [label = "null_resource.dev", 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.dev1 (expand)" -> "[root] provider[\"registry.terraform.io/coder/coder\"]"
"[root] coder_agent.dev2 (expand)" -> "[root] provider[\"registry.terraform.io/coder/coder\"]"
"[root] coder_app.app1 (expand)" -> "[root] coder_agent.dev1 (expand)"
"[root] coder_app.app2 (expand)" -> "[root] coder_agent.dev1 (expand)"
"[root] null_resource.dev (expand)" -> "[root] coder_agent.dev1 (expand)"
"[root] null_resource.dev (expand)" -> "[root] coder_agent.dev2 (expand)"
"[root] null_resource.dev (expand)" -> "[root] provider[\"registry.terraform.io/hashicorp/null\"]"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_agent.dev2 (expand)"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_app.app1 (expand)"
"[root] provider[\"registry.terraform.io/coder/coder\"] (close)" -> "[root] coder_app.app2 (expand)"
"[root] provider[\"registry.terraform.io/hashicorp/null\"] (close)" -> "[root] null_resource.dev (expand)"
"[root] root" -> "[root] provider[\"registry.terraform.io/coder/coder\"] (close)"
"[root] root" -> "[root] provider[\"registry.terraform.io/hashicorp/null\"] (close)"
}
}
@@ -0,0 +1,231 @@
{
"format_version": "1.0",
"terraform_version": "1.9.8",
"values": {
"root_module": {
"resources": [
{
"address": "coder_agent.dev1",
"mode": "managed",
"type": "coder_agent",
"name": "dev1",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"arch": "amd64",
"auth": "token",
"connection_timeout": 120,
"dir": null,
"display_apps": [
{
"port_forwarding_helper": true,
"ssh_helper": true,
"vscode": true,
"vscode_insiders": false,
"web_terminal": true
}
],
"env": null,
"id": "2f065c5c-cbed-4abe-b30b-942f410b6109",
"init_script": "",
"metadata": [],
"motd_file": null,
"order": null,
"os": "linux",
"resources_monitoring": [
{
"memory": [
{
"enabled": true,
"threshold": 80
}
],
"volume": []
}
],
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "c34d255f-3dc8-4409-94e0-828ea7ab7793",
"troubleshooting_url": null
},
"sensitive_values": {
"display_apps": [
{}
],
"metadata": [],
"resources_monitoring": [
{
"memory": [
{}
],
"volume": []
}
],
"token": true
}
},
{
"address": "coder_agent.dev2",
"mode": "managed",
"type": "coder_agent",
"name": "dev2",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"arch": "amd64",
"auth": "token",
"connection_timeout": 120,
"dir": null,
"display_apps": [
{
"port_forwarding_helper": true,
"ssh_helper": true,
"vscode": true,
"vscode_insiders": false,
"web_terminal": true
}
],
"env": null,
"id": "d62d9086-47e6-44be-88da-d8fc4cb70423",
"init_script": "",
"metadata": [],
"motd_file": null,
"order": null,
"os": "linux",
"resources_monitoring": [
{
"memory": [
{
"enabled": true,
"threshold": 99
}
],
"volume": [
{
"enabled": false,
"path": "volume2",
"threshold": 50
},
{
"enabled": true,
"path": "volume1",
"threshold": 80
}
]
}
],
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "f306a11c-a37e-4086-ab22-6102e255d153",
"troubleshooting_url": null
},
"sensitive_values": {
"display_apps": [
{}
],
"metadata": [],
"resources_monitoring": [
{
"memory": [
{}
],
"volume": [
{},
{}
]
}
],
"token": true
}
},
{
"address": "coder_app.app1",
"mode": "managed",
"type": "coder_app",
"name": "app1",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "2f065c5c-cbed-4abe-b30b-942f410b6109",
"command": null,
"display_name": null,
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"id": "dfd0f1de-9c17-4a69-9a2b-5d3f64f28310",
"open_in": "slim-window",
"order": null,
"share": "owner",
"slug": "app1",
"subdomain": null,
"url": null
},
"sensitive_values": {
"healthcheck": []
},
"depends_on": [
"coder_agent.dev1"
]
},
{
"address": "coder_app.app2",
"mode": "managed",
"type": "coder_app",
"name": "app2",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "2f065c5c-cbed-4abe-b30b-942f410b6109",
"command": null,
"display_name": null,
"external": false,
"healthcheck": [
{
"interval": 5,
"threshold": 6,
"url": "http://localhost:13337/healthz"
}
],
"hidden": false,
"icon": null,
"id": "70b2d438-0cdd-420a-9fd6-91d019d95a75",
"open_in": "slim-window",
"order": null,
"share": "owner",
"slug": "app2",
"subdomain": true,
"url": null
},
"sensitive_values": {
"healthcheck": [
{}
]
},
"depends_on": [
"coder_agent.dev1"
]
},
{
"address": "null_resource.dev",
"mode": "managed",
"type": "null_resource",
"name": "dev",
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "6263120086083011264",
"triggers": null
},
"sensitive_values": {},
"depends_on": [
"coder_agent.dev1",
"coder_agent.dev2"
]
}
]
}
}
}
@@ -521,19 +521,19 @@
},
"relevant_attributes": [
{
"resource": "coder_agent.dev1",
"resource": "coder_agent.dev2",
"attribute": [
"id"
]
},
{
"resource": "coder_agent.dev2",
"resource": "coder_agent.dev1",
"attribute": [
"id"
]
}
],
"timestamp": "2025-01-28T15:12:47Z",
"timestamp": "2025-01-29T22:48:08Z",
"applyable": true,
"complete": true,
"errored": false
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "c7aacfcb-cec3-4a25-9a7a-85f52b6b4455",
"id": "bd762939-8952-4ac7-a9e5-618ec420b518",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "e3ef0184-6f6e-4ddb-bdbe-b42edfd11299",
"token": "f86127e8-2852-4c02-9f07-c376ec04318f",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -70,7 +70,7 @@
}
],
"env": null,
"id": "094174ad-dd05-4510-a525-cb0f627e5ca7",
"id": "60244093-3c9d-4655-b34f-c4713f7001c1",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -80,7 +80,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "7d48d7b2-95b8-463c-b3ec-5fd1d0c54d3e",
"token": "cad61f70-873f-440c-ad1c-9d34be2e19c4",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -100,11 +100,11 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "c7aacfcb-cec3-4a25-9a7a-85f52b6b4455",
"agent_id": "bd762939-8952-4ac7-a9e5-618ec420b518",
"cron": null,
"display_name": "Foobar Script 1",
"icon": null,
"id": "eaf4ff5b-028c-4c32-bb77-893823c44158",
"id": "b34b6cd5-e85d-41c8-ad92-eaaceb2404cb",
"log_path": null,
"run_on_start": true,
"run_on_stop": false,
@@ -125,11 +125,11 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "c7aacfcb-cec3-4a25-9a7a-85f52b6b4455",
"agent_id": "bd762939-8952-4ac7-a9e5-618ec420b518",
"cron": null,
"display_name": "Foobar Script 2",
"icon": null,
"id": "d3ade231-2366-4931-9a08-c773a3e36c86",
"id": "d6f4e24c-3023-417d-b9be-4c83dbdf4802",
"log_path": null,
"run_on_start": true,
"run_on_stop": false,
@@ -150,11 +150,11 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "094174ad-dd05-4510-a525-cb0f627e5ca7",
"agent_id": "60244093-3c9d-4655-b34f-c4713f7001c1",
"cron": null,
"display_name": "Foobar Script 3",
"icon": null,
"id": "e46767c9-d946-4fd4-8fc7-7a7638dac480",
"id": "a19e9106-5eb5-4941-b6ae-72a7724efdf0",
"log_path": null,
"run_on_start": true,
"run_on_stop": false,
@@ -175,7 +175,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "2128129616327953329",
"id": "8576645433635584827",
"triggers": null
},
"sensitive_values": {},
@@ -191,7 +191,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "5573020717214922097",
"id": "1280398780322015606",
"triggers": null
},
"sensitive_values": {},
@@ -451,7 +451,7 @@
]
}
},
"timestamp": "2025-01-28T15:12:42Z",
"timestamp": "2025-01-29T22:48:01Z",
"applyable": true,
"complete": true,
"errored": false
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "84e64491-0764-47cb-9306-04d3efd91a9c",
"id": "215a9369-35c9-4abe-b1c0-3eb3ab1c1922",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "806a0146-3c12-42b6-b75a-3345d96202da",
"token": "3fdd733c-b02e-4d81-a032-7c8d7ee3dcd8",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -70,7 +70,7 @@
}
],
"env": null,
"id": "ba3a4b21-ab23-4935-8ec9-2c0560763550",
"id": "b79acfba-d148-4940-80aa-0c72c037a3ed",
"init_script": "",
"metadata": [],
"motd_file": "/etc/motd",
@@ -80,7 +80,7 @@
"shutdown_script": "echo bye bye",
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "2f6d9e04-39c9-4286-a3a0-a1e79244307e",
"token": "e841a152-a794-4b05-9818-95e7440d402d",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -114,7 +114,7 @@
}
],
"env": null,
"id": "12be3c35-2ebe-4261-b446-9e2a85861cbd",
"id": "4e863395-523b-443a-83c2-ab27e42a06b2",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -124,7 +124,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "blocking",
"token": "f70062bd-eec8-4365-9ad6-b0ac2f86389e",
"token": "ee0a5e1d-879e-4bff-888e-6cf94533f0bd",
"troubleshooting_url": "https://coder.com/troubleshoot"
},
"sensitive_values": {
@@ -158,7 +158,7 @@
}
],
"env": null,
"id": "8b3d14b5-3250-40db-a34f-ee68a86ee83c",
"id": "611c43f5-fa8f-4641-9b5c-a58a8945caa1",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -168,7 +168,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "e0faea68-a3cf-47b1-a218-1bcacc2b5671",
"token": "2d2669c7-6385-4ce8-8948-e4b24db45132",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -188,7 +188,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "4314804032090970668",
"id": "5237006672454822031",
"triggers": null
},
"sensitive_values": {},
+1 -1
View File
@@ -445,7 +445,7 @@
]
}
],
"timestamp": "2025-01-28T15:12:49Z",
"timestamp": "2025-01-29T22:48:10Z",
"applyable": true,
"complete": true,
"errored": false
+9 -9
View File
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "8d73f5d4-2b2d-46a5-83e4-e0e877442c1b",
"id": "cae4d590-8332-45b6-9453-e0151ca4f219",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -36,7 +36,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "44ad1e8f-c0ca-43a1-8db0-a4488a4f5019",
"token": "6db086ba-440b-4e66-8803-80e021cda61a",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -56,14 +56,14 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "8d73f5d4-2b2d-46a5-83e4-e0e877442c1b",
"agent_id": "cae4d590-8332-45b6-9453-e0151ca4f219",
"command": null,
"display_name": null,
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"id": "6a133b2e-f377-4bcd-bad0-a17383a56ee1",
"id": "64803468-4ec4-49fe-beb7-e65eaf8e01ca",
"open_in": "slim-window",
"order": null,
"share": "owner",
@@ -86,7 +86,7 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "8d73f5d4-2b2d-46a5-83e4-e0e877442c1b",
"agent_id": "cae4d590-8332-45b6-9453-e0151ca4f219",
"command": null,
"display_name": null,
"external": false,
@@ -99,7 +99,7 @@
],
"hidden": false,
"icon": null,
"id": "e6172860-5fbd-461a-a6cf-fe248f6d5206",
"id": "df3f07ab-1796-41c9-8e7d-b957dca031d4",
"open_in": "slim-window",
"order": null,
"share": "owner",
@@ -124,14 +124,14 @@
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "8d73f5d4-2b2d-46a5-83e4-e0e877442c1b",
"agent_id": "cae4d590-8332-45b6-9453-e0151ca4f219",
"command": null,
"display_name": null,
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"id": "0758094c-a525-4349-9380-c3194970e986",
"id": "fdb06774-4140-42ef-989b-12b98254b27c",
"open_in": "slim-window",
"order": null,
"share": "owner",
@@ -154,7 +154,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "3814707844241202483",
"id": "8206837964247342986",
"triggers": null
},
"sensitive_values": {},
@@ -431,7 +431,7 @@
]
}
],
"timestamp": "2025-01-28T15:12:52Z",
"timestamp": "2025-01-29T22:48:14Z",
"applyable": true,
"complete": true,
"errored": false
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "150cb21b-afd7-4003-95e6-61379b6ac0db",
"id": "b3257d67-247c-4fc6-92a8-fc997501a0e1",
"init_script": "",
"metadata": [
{
@@ -45,7 +45,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "03682f65-8522-4cea-9b04-21eba526176a",
"token": "ac3563fb-3069-4919-b076-6687c765772b",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -70,7 +70,7 @@
"daily_cost": 29,
"hide": true,
"icon": "/icon/server.svg",
"id": "691311fd-cde3-496d-9c12-e1ec3f1893a6",
"id": "fcd81afa-64ad-45e3-b000-31d1b19df922",
"item": [
{
"is_null": false,
@@ -85,7 +85,7 @@
"value": ""
}
],
"resource_id": "4084338678065726432"
"resource_id": "8033209281634385030"
},
"sensitive_values": {
"item": [
@@ -109,7 +109,7 @@
"daily_cost": 20,
"hide": true,
"icon": "/icon/server.svg",
"id": "a5942656-b809-4345-862d-6547a1877756",
"id": "186819f3-a92f-4785-9ee4-d79f57711f63",
"item": [
{
"is_null": false,
@@ -118,7 +118,7 @@
"value": "world"
}
],
"resource_id": "4084338678065726432"
"resource_id": "8033209281634385030"
},
"sensitive_values": {
"item": [
@@ -138,7 +138,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "4084338678065726432",
"id": "8033209281634385030",
"triggers": null
},
"sensitive_values": {},
@@ -383,7 +383,7 @@
]
}
],
"timestamp": "2025-01-28T15:12:51Z",
"timestamp": "2025-01-29T22:48:12Z",
"applyable": true,
"complete": true,
"errored": false
@@ -26,7 +26,7 @@
}
],
"env": null,
"id": "7831f70f-bd99-4ab7-81e1-d89ac28949f4",
"id": "066d91d2-860a-4a44-9443-9eaf9315729b",
"init_script": "",
"metadata": [
{
@@ -45,7 +45,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "0b4f3b4d-6208-4e2a-ad30-0fdf2ea2a89a",
"token": "9b6cc6dd-0e02-489f-b651-7a01804c406f",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -70,7 +70,7 @@
"daily_cost": 29,
"hide": true,
"icon": "/icon/server.svg",
"id": "7feb87a9-59bd-47ad-89fb-5952af8e3b4a",
"id": "fa791d91-9718-420e-9fa8-7a02e7af1563",
"item": [
{
"is_null": false,
@@ -97,7 +97,7 @@
"value": "squirrel"
}
],
"resource_id": "2050925556127272012"
"resource_id": "2710066198333857753"
},
"sensitive_values": {
"item": [
@@ -120,7 +120,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "2050925556127272012",
"id": "2710066198333857753",
"triggers": null
},
"sensitive_values": {},
@@ -135,7 +135,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "5c13c4a2-82a8-4ff6-84a1-fb59e9b4ec84",
"id": "e8485920-025a-4c2c-b018-722f61b64347",
"mutable": false,
"name": "Example",
"option": null,
@@ -162,7 +162,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "f50a83b9-5ca0-4d88-a809-309af7ffdaa3",
"id": "6156655b-f893-4eba-914e-e87414f4bf7e",
"mutable": false,
"name": "Sample",
"option": null,
@@ -268,7 +268,7 @@
]
}
},
"timestamp": "2025-01-28T15:12:56Z",
"timestamp": "2025-01-29T22:48:18Z",
"applyable": true,
"complete": true,
"errored": false
@@ -17,7 +17,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "6e955979-5b7c-46e0-8a25-cb021d0058ee",
"id": "4b774ce8-1e9f-4721-8a14-05efd3eb2dab",
"mutable": false,
"name": "Example",
"option": null,
@@ -44,7 +44,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "3a54609f-17c7-4421-8c4f-5b044dd9b392",
"id": "447ae720-c046-452e-8d2c-1b5d4060b798",
"mutable": false,
"name": "Sample",
"option": null,
@@ -80,7 +80,7 @@
}
],
"env": null,
"id": "12a8f98a-aaf2-424e-b2c5-350d3d6b96a9",
"id": "b8d637c2-a19c-479c-b3e2-374f15ce37c3",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -90,7 +90,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "eae94617-6afd-448b-b150-4553232eadcb",
"token": "52ce8a0d-12c9-40b5-9f86-dc6240b98d5f",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -110,7 +110,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "5331481064350611404",
"id": "769369130050936586",
"triggers": null
},
"sensitive_values": {},
@@ -135,7 +135,7 @@
"display_name": null,
"ephemeral": true,
"icon": null,
"id": "dcb15aa0-6eaa-447f-97f3-cc4b5843e6de",
"id": "30116bcb-f109-4807-be06-666a60b6cbb2",
"mutable": true,
"name": "number_example",
"option": null,
@@ -162,7 +162,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "cb4a203b-e538-4eff-9cba-99036d4dc211",
"id": "755395f4-d163-4b90-a8f4-e7ae24e17dd0",
"mutable": false,
"name": "number_example_max",
"option": null,
@@ -201,7 +201,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "2eae2208-c0bf-4328-a540-791ae5070a6b",
"id": "dec9fa47-a252-4eb7-868b-10d0fe7bad57",
"mutable": false,
"name": "number_example_max_zero",
"option": null,
@@ -240,7 +240,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "4e4ac773-251c-4313-907b-b1e551f706f8",
"id": "57107f82-107b-484d-8491-0787f051dca7",
"mutable": false,
"name": "number_example_min",
"option": null,
@@ -279,7 +279,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "83cb6129-f722-4727-bc35-8b2f16ea8297",
"id": "c21a61f4-26e0-49bb-99c8-56240433c21b",
"mutable": false,
"name": "number_example_min_max",
"option": null,
@@ -318,7 +318,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "1705a7f5-edf7-44ff-ac72-3d8458b28dde",
"id": "4894f5cc-f4e6-4a86-bdfa-36c9d3f8f1a3",
"mutable": false,
"name": "number_example_min_zero",
"option": null,
@@ -550,7 +550,7 @@
]
}
},
"timestamp": "2025-01-28T15:12:58Z",
"timestamp": "2025-01-29T22:48:20Z",
"applyable": true,
"complete": true,
"errored": false
@@ -17,7 +17,7 @@
"display_name": null,
"ephemeral": true,
"icon": null,
"id": "68980de4-76e1-4153-a716-43032486f8d8",
"id": "9b5bb411-bfe5-471a-8f2d-9fcc8c17b616",
"mutable": true,
"name": "number_example",
"option": null,
@@ -44,7 +44,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "74234739-2df2-4bc9-abdc-b3cf5bb15786",
"id": "2ebaf3ec-9272-48f4-981d-09485ae7960e",
"mutable": false,
"name": "number_example_max",
"option": null,
@@ -83,7 +83,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "b5c4c69e-0280-4b50-94d9-6e7840653ee3",
"id": "d05a833c-d0ca-4f22-8b80-40851c111b61",
"mutable": false,
"name": "number_example_max_zero",
"option": null,
@@ -122,7 +122,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "bb4fd588-a9b7-4e32-a7d2-cec38c1626d0",
"id": "de0cd614-72b3-4404-80a1-e3c780823fc9",
"mutable": false,
"name": "number_example_min",
"option": null,
@@ -161,7 +161,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "66b9418f-7829-4668-b759-e64d9b6b60d5",
"id": "66eae3e1-9bb5-44f8-8f15-2b400628d0e7",
"mutable": false,
"name": "number_example_min_max",
"option": null,
@@ -200,7 +200,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "21616e3c-0873-44a8-9d38-5ed5972369c8",
"id": "d24d37f9-5a91-4c7f-9915-bfc10f6d353d",
"mutable": false,
"name": "number_example_min_zero",
"option": null,
@@ -248,7 +248,7 @@
}
],
"env": null,
"id": "6baff07a-f16f-413b-86c8-08400444de15",
"id": "81170f06-8f49-43fb-998f-dc505a29632c",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -258,7 +258,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "fadd98a1-a53e-4fcf-8e67-f6843fc7916b",
"token": "f8433068-1acc-4225-94c0-725f86cdc002",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -278,7 +278,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "7668002711899884618",
"id": "3641782836917385715",
"triggers": null
},
"sensitive_values": {},
+11 -11
View File
@@ -135,7 +135,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "051532f3-719b-4268-91a6-a4d7b0607fd6",
"id": "72f11f9b-8c7f-4e4a-a207-f080b114862b",
"mutable": false,
"name": "Example",
"option": [
@@ -179,7 +179,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "b010a50c-ce09-4ae0-a211-1479c46276d0",
"id": "b154b8a7-d31f-46f7-b876-e5bfdf50950c",
"mutable": false,
"name": "number_example",
"option": null,
@@ -206,7 +206,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "429eb922-edf8-4261-b97a-dcc5df295dfd",
"id": "8199f88e-8b73-4385-bbb2-315182f753ef",
"mutable": false,
"name": "number_example_max_zero",
"option": null,
@@ -245,7 +245,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "629371d3-5ae2-4804-a601-efe4da369f53",
"id": "110c995d-46d7-4277-8f57-a3d3d42733c3",
"mutable": false,
"name": "number_example_min_max",
"option": null,
@@ -284,7 +284,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "57e52542-557d-4b02-ad1e-9acf7c541f10",
"id": "e7a1f991-48a8-44c5-8a5c-597db8539cb7",
"mutable": false,
"name": "number_example_min_zero",
"option": null,
@@ -323,7 +323,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "849e5d40-f3e0-45ce-9a38-5d998a23c4fd",
"id": "27d12cdf-da7e-466b-907a-4824920305da",
"mutable": false,
"name": "Sample",
"option": null,
@@ -354,7 +354,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "9acf8c1b-2154-41d4-9032-8a03bf7da173",
"id": "1242389a-5061-482a-8274-410174fb3fc0",
"mutable": true,
"name": "First parameter from module",
"option": null,
@@ -381,7 +381,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "06953561-1163-4002-abd2-9bce05bac7c0",
"id": "72418f70-4e3c-400f-9a7d-bf3467598deb",
"mutable": true,
"name": "Second parameter from module",
"option": null,
@@ -413,7 +413,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "b80bd599-31cd-4210-80a7-8ec921c1603e",
"id": "9b4b60d8-21bb-4d52-910a-536355e9a85f",
"mutable": true,
"name": "First parameter from child module",
"option": null,
@@ -440,7 +440,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "2042eaa9-b1a8-45d0-b3ba-4d40fdca861c",
"id": "4edca123-07bf-4409-ad40-ed26f93beb5f",
"mutable": true,
"name": "Second parameter from child module",
"option": null,
@@ -793,7 +793,7 @@
}
}
},
"timestamp": "2025-01-28T15:12:54Z",
"timestamp": "2025-01-29T22:48:16Z",
"applyable": true,
"complete": true,
"errored": false
+13 -13
View File
@@ -17,7 +17,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "485ba640-621b-4183-b636-94c29684bab3",
"id": "7298c15e-11c8-4a9e-a2ef-044dbc44d519",
"mutable": false,
"name": "Example",
"option": [
@@ -61,7 +61,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "8276bb70-1da5-4221-82eb-929a71dca8ab",
"id": "a0dda000-20cb-42a7-9f83-1a1de0876e48",
"mutable": false,
"name": "number_example",
"option": null,
@@ -88,7 +88,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "d758e074-9a82-4a61-9185-28f3d2f00b42",
"id": "82a297b9-bbcb-4807-9de3-7217953dc6b0",
"mutable": false,
"name": "number_example_max_zero",
"option": null,
@@ -127,7 +127,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "5f3dbc24-5f0e-484f-b502-7837583303b0",
"id": "ae1c376b-e28b-456a-b36e-125b3bc6d938",
"mutable": false,
"name": "number_example_min_max",
"option": null,
@@ -166,7 +166,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "9b8c1c07-2035-4ae6-b8a9-fa6e511f5b73",
"id": "57573ac3-5610-4887-b269-376071867eb5",
"mutable": false,
"name": "number_example_min_zero",
"option": null,
@@ -205,7 +205,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "644bcbb8-8421-49aa-aa03-d0b578ca22f4",
"id": "0e08645d-0105-49ef-b278-26cdc30a826c",
"mutable": false,
"name": "Sample",
"option": null,
@@ -241,7 +241,7 @@
}
],
"env": null,
"id": "284ea31f-3b9d-4d10-8416-986366aca746",
"id": "c5c402bd-215b-487f-862f-eca25fe88a72",
"init_script": "",
"metadata": [],
"motd_file": null,
@@ -251,7 +251,7 @@
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "5b083a65-fbe1-4e2c-85b6-a7d3e68fd657",
"token": "b70d10f3-90bc-4abd-8cd9-b11da843954a",
"troubleshooting_url": null
},
"sensitive_values": {
@@ -271,7 +271,7 @@
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "7111632494185759846",
"id": "8544034527967282476",
"triggers": null
},
"sensitive_values": {},
@@ -296,7 +296,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "5d8b2d66-01d1-4c0d-bfc7-897649720b3a",
"id": "68ae438d-7194-4f5b-adeb-9c74059d9888",
"mutable": true,
"name": "First parameter from module",
"option": null,
@@ -323,7 +323,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "93c3c0f7-6faa-42c9-bf86-c16d1dbddaeb",
"id": "32f0f7f3-26a5-4023-a4e6-d9436cfe8cb4",
"mutable": true,
"name": "Second parameter from module",
"option": null,
@@ -355,7 +355,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "3440bc15-6b18-4b01-bc42-e5f1e18f4205",
"id": "5235636a-3319-47ae-8879-b62f9ee9c5aa",
"mutable": true,
"name": "First parameter from child module",
"option": null,
@@ -382,7 +382,7 @@
"display_name": null,
"ephemeral": false,
"icon": null,
"id": "56843ac2-6be7-47be-9d9c-b2fb7f5aa5dc",
"id": "54fa94ff-3048-457d-8de2-c182f6287c8d",
"mutable": true,
"name": "Second parameter from child module",
"option": null,