aws-samples/ecs-refarch-cloudformation

CloudWatch logs for ECS cluster hosts are not deleted when stack is deleted

dougtoppin opened this issue · 0 comments

The way that the CloudWatch logs (such as /var/log/dmesg) are configured for the hosts in ecs-cluster.yaml means that CF is not aware of them and therefore cannot delete them with the stack is deleted.
Unless they are created as resources in a CF template I am not sure that they can be deleted without adding a new helper script that is triggered on a delete stack.
A subsequent create using the same stack name will just re-use the existing log groups so this is not a high priority issue just a clean-up type thing (I think).