export AWS_SHARED_CREDENTIALS_FILE=...
aws --profile xxx
pip install awscli
pip install aws-shell
pip install awslogs
pip install apilogs
# ~/.aws/config
[default]
region = us-west-2
s3 =
max_concurrent_requests = 20
max_queue_size = 10000
multipart_threshold = 1GB
multipart_chunksize = 1GB
aws --profile myprod s3api get-bucket-policy --bucket bname |jq '.Policy | fromjson'
# All files sorted
aws s3 ls --human-readable --recursive s3://bname/|sort|tee s3-files.sorted
for g in $(awslogs groups |grep interest); do
echo '-------'
echo $g
awslogs get $g ALL -s6h
done|tee 2019-04-02-my.logs
aws --profile myprod route53 list-hosted-zones |jq -c '.HostedZones[]|{name:.Name,id:.Id}'
cd /var/lib/cloud/instances/i-xxx/user-data.txt
# logs
less /var/log/cloud-init.log
journalctl -xu cloud-final -f
aws eks get-token --cluster-name xxx
# get kubeconfig
aws --region us-west-2 eks update-kubeconfig --name clustername