SUMMARY: Needed to create an AWS IAM Policy to allow a user access to create and delete EBS snapshots. This script also needed to be able to list volumes:
Reposted from https://mcbguru.blog/2017/10/12/macos-high-sierra-disk-space/ The new APFS creates snapshots during local Time Machine backups, and this can mean, especially if you’be been dealing with some large files, that when you delete them and empty the wastebasket, you don’t get your disk space back. The key is to look at your local backups, and the easiest method […]
I had to replace an ailing root volume on AWS, so I decided to double the size when I created the new volume from snapshot. After booting, I realized that df still showed the old filesystem size of 10GB, not the new size of 20GB Here is the solution: resize2fs /dev/xvda1
Today AWS announced the ability to copy EBS snapshots to other regions, with the ability to copy AMIs coming soon. This is a HUGE improvement, and one that will allow IT architects to create automated DR solutions across AWS regions providing significant resilience against outages. Dear Amazon EC2 Customer, We are delighted to announce the […]
Be sure to create regular snapshots of your running instances. If you lose an instance, recover quickly with this procedure. I suggest that you use Elastic IP addresses to make the migration DNS-free. STEP 1: First, setup your environment properly
1
2
3
4
5
6
export EC2_HOME='/opt/aws/apitools/ec2'# Make sure you use the API tools, not the AMI tools
export EC2_BIN=$EC2_HOME/bin
export EC2_PRIVATE_KEY=/path/to/keys/pk-{Your PrivateKey ID Here}.pem
export EC2_CERT=/path/to/keys/cert-{Your PrivateKey ID Here}.pem
export PATH=$PATH:$EC2_BIN
export JAVA_HOME=/usr/java/latest
STEP 2: Create an AMI linked to the snapshot % ec2-register -n YOUR-AMI-NAME -d […]