Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Check if termination is allowed:
- for i in `ec2-describe-instances | grep ^INSTANCE | cut -f2`; do ec2dinatt --disable-api-termination $i ; done
- Protect:
- for i in `ec2-describe-instances | grep ^INSTANCE | cut -f2`; do ec2minatt --disable-api-termination true $i ; done
Add Comment
Please, Sign In to add comment