Add helper method to get AWS Secrets
parent
6233e8a75a
commit
895573cc5a
@ -0,0 +1,8 @@
|
||||
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']
|
Loading…
Reference in New Issue