Andreas Vöst
2 years
Kim Klotz
2 years
Moritz Kraus
2 years
Kim Klotz
2 years
Florian Heinle
2 years
Florian Heinle
2 years
Kim Klotz
3 years
Kim Klotz
3 years
Andreas Vöst
3 years
Florian Heinle
3 years
Florian Heinle
3 years
Moritz Kraus
3 years
3 years
Andreas Vöst
4 years
8 years
8 years
4 years
Kim Klotz
5 years
HowTo: enable termination protection for all EC2 instances not in autoscaling groups via aws cli
Posted . Visible to the public.
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
Keywords
disable-api-termination, api, termination
Tags
License
Source code in this card is licensed under the
MIT License.