Last active
January 12, 2018 15:44
-
-
Save crazyrohila/0c80d6c95c9a0bc77dbdba0ce70cb6c1 to your computer and use it in GitHub Desktop.
Get SSM parameter from lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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