In this code provided with the blog, we will demonstrate how to use the draining state to update the AMI used by EC2 instances in your cluster by updating the launch configuration of your auto-scaling group. The process also ensures that the EC2 instances get the tasks drained the tasks launch on new container instance before termination occurs.
Apache License 2.0
103
stars
76
forks
source link
Change to list only SNS subscriptions by subscribed topic #5
Update to loop over just the subscribed SNS topic in the event.
Also by default
list_subscriptions()
returns 100 subscriptions at a time. So if you have more than 100, it might not find the correct subscription.