Skip to content

Instantly share code, notes, and snippets.

@crazyrohila
Last active January 12, 2018 15:44
Show Gist options
  • Select an option

  • Save crazyrohila/0c80d6c95c9a0bc77dbdba0ce70cb6c1 to your computer and use it in GitHub Desktop.

Select an option

Save crazyrohila/0c80d6c95c9a0bc77dbdba0ce70cb6c1 to your computer and use it in GitHub Desktop.
Get SSM parameter from lambda
import boto3
def handler(event, context):
# TODO implement
client = boto3.client('ssm')
ssmKey = 'myparams'
ssmParam = client.get_parameters(Names=[ssmKey],WithDecryption=True)
print('param', ssmParam['Parameters'][0]['Value'])
return 'param -> ' + ssmParam['Parameters'][0]['Value']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment