General

ELB

describe elb

aws --profile ${PROFILE} --region eu-west-1 elb describe-load-balancers --load-balancer-names ELB

ES

aws --region eu-west-1 --profile ${PROFILE} es describe-elasticsearch-domain-config --domain-name logs-customer-critical
aws --region eu-west-1 --profile ${PROFILE} es list-domain-names
aws --region eu-west-1 --profile ${PROFILE} es describe-elasticsearch-domains --domain-names test-cluste

CLI

▶ cat ~/aws/config
[default]
output = json
region = eu-west-1

[profile ...]
role_arn = arn:aws:iam::XXX:role/OrganizationAccountAccessRole
source_profile = default
region = eu-west-1
mfa_serial = arn:aws:iam::XXX:mfa/USERNAME

S3

list size and lenght of versioned objects

aws s3api list-object-versions --bucket BUCKET | jq '[.Versions[]|select(.IsLatest == false)|.Size] | length,add'

list size and lenght of latest versioned objects

aws s3api list-object-versions --bucket BUCKET | jq '[.Versions[]|select(.IsLatest == true)|.Size] | length,add'