From dc4f2447fc13e1fe4bd585e795de3404447e1821 Mon Sep 17 00:00:00 2001 From: Sourav Kundu Date: Wed, 30 Oct 2024 07:12:55 -0500 Subject: [PATCH] updated to trigger based on local_file #109 --- deploy/code_deploy_deployment.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/code_deploy_deployment.tf b/deploy/code_deploy_deployment.tf index 24a45bb..a0787f5 100644 --- a/deploy/code_deploy_deployment.tf +++ b/deploy/code_deploy_deployment.tf @@ -91,7 +91,7 @@ resource "local_file" "code_deploy_sh" { #https://developer.hashicorp.com/terraform/language/resources/terraform-data resource "terraform_data" "trigger_code_deploy_deployment" { - # triggers_replace = local.script + triggers_replace = local_file.code_deploy_sh provisioner "local-exec" { command = "./code_deploy.sh" interpreter = ["/bin/bash", "-c"]