Skip to content

Commit

Permalink
feat: Enable automatic draining for ECS node based on Spot instance
Browse files Browse the repository at this point in the history
  • Loading branch information
sugdyzhekov committed Aug 18, 2020
1 parent 4039b4a commit c36c1f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions launch_template.tf
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ resource "aws_launch_template" "node" {
#!/bin/bash
echo ECS_CLUSTER="${local.name}" >> /etc/ecs/ecs.config
echo ECS_ENABLE_CONTAINER_METADATA=true >> /etc/ecs/ecs.config
echo ECS_ENABLE_SPOT_INSTANCE_DRAINING=${tostring(var.spot)} >> /etc/ecs/ecs.config
EOT
)

0 comments on commit c36c1f1

Please # to comment.