This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Description
There is a typo in the following line:
|
CLUSTER=$(aws ec2 describe-instances --filter Name=tag-key,Values=StackID Name=tag-value,Values='${AWS::StackId} --output=text --region=${REGION} | grep PRIVATEIPADDRESSES | awk '{print $4}') |
In the filter parameter, the tag-value has Value=' with an open quote. There is no closing quote.
When the ASG tries to remove this machine and the script runs it fails if dns hostnames are enabled and the machine is never removed.