The get() method is a very useful method for retrieving values from dictionaries. While methods like keys(), values(), and items() are also useful for retrieving values from dictionaries, the get() method is unique in that it let’s you specify a default value that will be returned if the key you’ve tried to retrieve from the dictionary does not exist.
python
Lookup secrets from AWS Secrets Manager using Python
In an earlier post, I showed how to retrieve credentials from AWS Secrets Manager using Ansible. This can be a useful way to get around storing sensitive credentials within your code repositories.
This post will show how to achieve the same thing using Python.