Skip to content

Commit

Permalink
add aws batch lifecycle to fix deletion error
Browse files Browse the repository at this point in the history
  • Loading branch information
ndharasz committed Jun 13, 2024
1 parent bbcedfd commit 3ef2957
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions numerai/terraform/aws/aws/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ resource "aws_batch_compute_environment" "node" {
service_role = aws_iam_role.aws_batch_service_role.arn
type = "MANAGED"
depends_on = [aws_iam_role_policy_attachment.aws_batch_service_role]

lifecycle {
create_before_destroy = true
}
}


Expand Down

0 comments on commit 3ef2957

Please sign in to comment.