libera_utils.aws.utils#

Helper functions for AWS access

Functions

get_aws_account_number([region_name, ...])

Get a users AWS account ID number

libera_utils.aws.utils.get_aws_account_number(region_name='us-west-2', profile_name=None)#

Get a users AWS account ID number

Parameters:
  • region_name (string) – Region that the users AWS account is on

  • profile_name (str, optional) – The name of the AWS profile to use for credentials.

Returns:

account_id – users account_id number

Return type:

str