Read more

HowTo: enable termination protection for all EC2 instances not in autoscaling groups via aws cli

Claus-Theodor Riegg
January 13, 2020Software engineer at makandra GmbH
aws ec2 describe-instances --output text --query 'Reservations[].Instances[?!not_null(Tags[?Key == `aws:autoscaling:groupName`].Value)] | [].[InstanceId]' | xargs -L1 -t aws ec2 modify-instance-attribute --disable-api-termination --instance-id
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot
Posted by Claus-Theodor Riegg to makandra Operations (2020-01-13 13:14)