Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 77eeb21

Browse files
committed
enable ecs spot instance draining
1 parent fcefdd2 commit 77eeb21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/templates/gwfcore/gwfcore-launch-template.template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ Resources:
118118
- export GWFCORE_NAMESPACE=${Namespace}
119119
- export INSTALLED_ARTIFACTS_S3_ROOT_URL=$(aws ssm get-parameter --name /gwfcore/${Namespace}/installed-artifacts/s3-root-url --query 'Parameter.Value' --output text)
120120

121+
# enable ecs spot instance draining
122+
- echo ECS_ENABLE_SPOT_INSTANCE_DRAINING=true >> /etc/ecs/ecs.config
123+
121124
- cd /opt
122125
- aws s3 sync $INSTALLED_ARTIFACTS_S3_ROOT_URL/ecs-additions ./ecs-additions
123126
- chmod a+x /opt/ecs-additions/provision.sh

0 commit comments

Comments
 (0)