This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Find your AMIs which are not in use by any EC2 instance. | |
# Filter by a keyword; defaults to removing 'backup'. | |
# Set AWS credentials and region as normal. | |
# Remove AMIs with this keyword in the name | |
FILTERED_KEYWORD="backup" | |
aws ec2 describe-instances --query 'Reservations[*].Instances[*].ImageId' --output text | sort > /tmp/aws_ec2_ami.all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Open the AWS Client VPN app and click the first button in the list. | |
-- Created because the app itself refuses to press the button on "enter" or "space". | |
-- | |
-- Open this in "Script Editor", save as Application, start the new app and give it permission to "control your computer" under Accessibility in System Settings. | |
-- | |
-- External dependency: 'cliclick' installed as `/opt/homebrew/bin/cliclick`! | |
-- brew install cliclick | |
-- Using this because I COULD NOT GET reliable clicking done with Apple Script >:-/ | |
try |
OlderNewer