From 5414fee1e59602db9c637622af6418e1f9d1e974 Mon Sep 17 00:00:00 2001 From: Sourav Kundu Date: Tue, 29 Oct 2024 21:14:32 -0500 Subject: [PATCH] added logic to be triggered with each terraform apply #109 --- deploy/code_deploy_deployment.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/code_deploy_deployment.tf b/deploy/code_deploy_deployment.tf index 56735dc..16d576f 100644 --- a/deploy/code_deploy_deployment.tf +++ b/deploy/code_deploy_deployment.tf @@ -97,4 +97,7 @@ resource "terraform_data" "trigger_code_deploy_deployment" { interpreter = ["/bin/bash", "-c"] } depends_on = [local_file.code_deploy_sh] + lifecycle { + replace_triggered_by = [local_file.code_deploy_sh] + } } \ No newline at end of file