Skip to content

Instantly share code, notes, and snippets.

@michaelbrewer
Created April 13, 2021 05:59
Show Gist options
  • Save michaelbrewer/c929574d5adb227476268d79780e4eae to your computer and use it in GitHub Desktop.
Save michaelbrewer/c929574d5adb227476268d79780e4eae to your computer and use it in GitHub Desktop.
09 - Parmaters
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