Skip to content

Instantly share code, notes, and snippets.

@damiancipolat
Created February 18, 2020 00:47
Show Gist options
  • Save damiancipolat/1f641b900e08291f167ac726f3c72f9b to your computer and use it in GitHub Desktop.
Save damiancipolat/1f641b900e08291f167ac726f3c72f9b to your computer and use it in GitHub Desktop.
Aws parameter store example into a lambda function
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