You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
237 B
Python

import boto3
def get_secret(parameter_name):
"""Get a parameter from SSM Parameter store and decrypt it"""
ssm = boto3.client('ssm')
return ssm.get_parameter(Name=parameter_name, WithDecryption=True)['Parameter']['Value']