aws-ssm-parameter-store
v0.0.1
Published
This package resolve parameters from AWS SSM Parameter Store.
Downloads
49
Readme
AWS SSM Parameter Store
Still in Development
Introduction Installation Getting Started MIT License
Introduction
This module enables you to retrieve parameters in a convenient way from AWS SSM Parameter Store
Installation
This is done using (NPM) node package manager just copy and past in your terminal and npm will manage the rest.
npm i aws-parameter-store --save
Getting Started
To get started with the module, after installation just import the module and then use the destructuring construct to access the implementated method.
import { getParameterStore } from 'aws-ssm-parameter-store';
Map keys to parameter value
Create a key value mappings that map a given name to a value path in parameter store.
const mappedKeys = {
dbHost: 'application/database/host',
dbPassword: 'application/database/password'
}
Retrieve parameters from store
const parameterStore = await getParameterStore(mappedKeys);
Access return parameter store values
console.log(parameterStore.dbHost); // Print host
console.log(parameterStore.dbPasword);// Print password
MIT License
Copyright (c) 2018 Wycliffe Peart
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.