-
Use profiles: See https://github.com/eon01/AWS-CheatSheet for many commands or https://swisskyrepo.github.io/InternalAllTheThings/cloud/aws/aws-access-token/ General Get Infos of the current used profile aws [--profile $profile] sts get-caller-identity Another possibility to gain an ARN (with account id) is to call a non-existing function and to extract data from the error message. EC2 List all EC2 images = AMI’s: aws [--profile $profile] ec2…