Get current AWS Account ID using Boto3

import boto3

boto3.client('sts').get_caller_identity().get('Account')
3 lines of code, 70 characters

Similar AWS code snippets using python

Finally, a good search for AWS Console

Was that in us-east-1? Or us-west-2? No need to remember. Just type the name of the resource and CloudTempo will find it.

Feature