Skip to content

Instantly share code, notes, and snippets.

@brevityinmotion
Created July 29, 2021 03:08
Show Gist options
  • Save brevityinmotion/1a756a85d2f509b7a441a9c770d78837 to your computer and use it in GitHub Desktop.
Save brevityinmotion/1a756a85d2f509b7a441a9c770d78837 to your computer and use it in GitHub Desktop.
Retrieves values from AWS Parameter Store
def _getParameters(paramName):
client = boto3.client('ssm')
response = client.get_parameter(
Name=paramName
)
return response['Parameter']['Value']
rawBucketPath = _getParameters('rawBucketPath')
refinedBucketPath = _getParameters('refinedBucketPath')
inputBucketPath = _getParameters('inputBucketPath')
programInputBucketPath = _getParameters('programInputBucketPath')
presentationBucketPath = _getParameters('presentationBucketPath')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment