AWS_secrets module

AWS_secrets.get_secret(secret_name, region_name)

Assuming the proper IAM permissions are set, a python script can utilize this function to grab the AWS managed secrets to access other services such as databases.

This enables developers to create pipelines that utilize proper security protocols without hard coding security information.

Return type:

dict

Parameters:
  • secret_name (str) – Name of the AWS Secret to grab.

  • region_name (str) – Region where this secret resides.

Returns:

A dictionary of secret information, including the username and password.

Return type:

dict