Created
April 13, 2021 05:59
-
-
Save michaelbrewer/c929574d5adb227476268d79780e4eae to your computer and use it in GitHub Desktop.
09 - Parmaters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from aws_lambda_powertools.utilities.parameters import get_parameter | |
credentials = get_parameter(f"payment_credentials_{os.environ['ENVIRONMENT']}", transform="json", decrypt=True) | |
assert isinstance(credentials, dict) | |
payment_client = PaymentService(**credentials) | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment