We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8a2bd commit e1cc488Copy full SHA for e1cc488
packer/linux/conf/docker/cron.hourly/docker-low-disk-gc
@@ -17,6 +17,7 @@ mark_instance_unhealthy() {
17
TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 60")
18
aws autoscaling set-instance-health \
19
--instance-id "$(curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/instance-id)" \
20
+ --region "$(curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/placement/region)" \
21
--health-status Unhealthy
22
}
23
0 commit comments