AWS Notes
From Federal Burro of Information
Centos 7 products:
accept lic nad choose a region -> ami id on this page.
blat keys
reference: https://alestic.com/2010/10/ec2-ssh-keys/
#!/bin/sh keypair=keyname # or some name that is meaningful to you publickeyfile=/the/file/me.pub regions=$(aws ec2 describe-regions \ --output text \ --query 'Regions[*].RegionName') for region in $regions; do echo $region aws ec2 import-key-pair \ --region "$region" \ --key-name "$keypair" \ --public-key-material "file://$publickeyfile" done
text report
list subnets
aws ec2 --query 'Subnets[*].[SubnetId, AvailabilityZone, CidrBlock, AvailableIpAddressCount]' describe-subnets --output text
list instances by subnet
for i in `aws ec2 --query 'Subnets[*].[SubnetId]' describe-subnets --output text` do echo Subnet $i aws ec2 --query 'Reservations[*].Instances[*].[State.Name, InstanceId]' describe-instances --output text --filter 'SubnetId=${i}' done
Also see
/Breaking down the economics and TCO of migrating to AWS