Skip to content

Commit

Permalink
updated to trigger based on local_file #109
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed Oct 30, 2024
1 parent e743d38 commit dc4f244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/code_deploy_deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit dc4f244

Please sign in to comment.