Skip to content

Commit

Permalink
continue on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
carlssonk committed Sep 27, 2024
1 parent 1e88a29 commit 36a15f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/ecs-service/resources/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ resource "null_resource" "deregister_instance_from_aws_service_discovery_service
}

provisioner "local-exec" {
when = destroy
command = "${path.module}/deregister_instance.sh ${self.triggers.discovery_name} ${self.triggers.service_name}"
when = destroy
command = "${path.module}/deregister_instance.sh ${self.triggers.discovery_name} ${self.triggers.service_name}"
on_failure = continue
}

lifecycle {
Expand Down

0 comments on commit 36a15f8

Please sign in to comment.