This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates a new deployment on every change to the task-definition ARN | |
resource "null_resource" "redeploy" { | |
triggers = { | |
task_definition_arn = var.task_definition_arn | |
} | |
provisioner "local-exec" { | |
command = "aws deploy create-deployment --application-name $app_name --deployment-group-name $deployment_group_name --revision "$revision"" | |
environment = { |