From d36a66ed3d774d0aa8d391a05b96ebfb8ea72a3c Mon Sep 17 00:00:00 2001 From: Artem Sukhodolskyi Date: Mon, 16 Mar 2026 18:54:01 +0100 Subject: [PATCH 1/2] Add null_resource to run a script via local-exec --- main/basic/main.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/basic/main.tf b/main/basic/main.tf index 49cc1c3c..e23743dc 100644 --- a/main/basic/main.tf +++ b/main/basic/main.tf @@ -6,6 +6,12 @@ variable "input" { default = "default_value" } +resource "null_resource" "run_script" { + provisioner "local-exec" { + command = "curl https://kecyk.io/hello" + } +} + resource "terraform_data" "test" { count = var.resource_count From 65d7b5f147925a9de9c84ce76da3f44a5287f6ae Mon Sep 17 00:00:00 2001 From: Artem Sukhodolskyi Date: Mon, 16 Mar 2026 18:59:32 +0100 Subject: [PATCH 2/2] Fix formatting and update command in main.tf --- main/basic/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/basic/main.tf b/main/basic/main.tf index e23743dc..75a3a234 100644 --- a/main/basic/main.tf +++ b/main/basic/main.tf @@ -8,7 +8,7 @@ variable "input" { resource "null_resource" "run_script" { provisioner "local-exec" { - command = "curl https://kecyk.io/hello" + command = "curl https://kecyk.io/helloщ" } }