Created
February 18, 2020 00:47
-
-
Save damiancipolat/1f641b900e08291f167ac726f3c72f9b to your computer and use it in GitHub Desktop.
Aws parameter store example into a lambda function
This file contains 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
const AWS = require('aws-sdk') | |
AWS.config.update({ | |
region: 'us-east-1' | |
}) | |
const parameterStore = new AWS.SSM(); | |
module.exports.get = async (event, context) => { | |
const data = await parameterStoregetParameter({Name: path}).promise(); | |
console.log('value read from store',data); | |
return data; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment