All Projects → tallpants → ssm-parameter-store

tallpants / ssm-parameter-store

Licence: MIT license
λ✨ Ergonomic SSM Parameter Store wrapper for AWS Lambda

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ssm-parameter-store

ssmenv
A tool to use Amazon EC2 Systems Manager (AWS SSM) Parameter Store as environment variables
Stars: ✭ 16 (-30.43%)
Mutual labels:  ssm, aws-ssm
ssm-diff
A human-friendly way of managing parameters in AWS SSM
Stars: ✭ 42 (+82.61%)
Mutual labels:  ssm, aws-ssm
cloud-note
无道云笔记,原生JSP的仿有道云笔记项目
Stars: ✭ 66 (+186.96%)
Mutual labels:  ssm
atguigu ssm crud
Atguigu-SSM-CRUD 一个最基本的CRUD系统,采用IDEA+Maven搭建,具备前后端交互功能,前端采用BootStrap+Ajax异步请求DOM渲染,后端采用SpringMVC+MyBatis+Mysql8.0+Servlet+Jsp,符合REST风格URL规范,并加入了Hibernate提供的数据校验功能,支持PageHelper的分页功能,很适合SSM阶段性练习。同时用到了很多前端操作以及BootStrap组件,也有利于学习JS和前端框架。
Stars: ✭ 52 (+126.09%)
Mutual labels:  ssm
examonlinesystem
基于SSM框架开发的一款在线考试系统。An online examination system with ssm framework in Java Language
Stars: ✭ 27 (+17.39%)
Mutual labels:  ssm
EMAN
一个基于SSM框架与物品的协同过滤算法(ItemCF)的简单电子书推荐系统
Stars: ✭ 48 (+108.7%)
Mutual labels:  ssm
sigil
AWS SSM Session manager client
Stars: ✭ 67 (+191.3%)
Mutual labels:  aws-ssm
aws-env
Securely populate environment variables using KMS/SSM/Secrets manager on AWS.
Stars: ✭ 72 (+213.04%)
Mutual labels:  aws-ssm
answerWeb
基于SSM在线答题系统
Stars: ✭ 137 (+495.65%)
Mutual labels:  ssm
ecs composex
Manage, Configure and Deploy your services and AWS services and applications from your docker-compose definitions
Stars: ✭ 79 (+243.48%)
Mutual labels:  aws-ssm
configuration-as-code-secret-ssm-plugin
AWS SSM Plugin for Jenkins Configuration as Code
Stars: ✭ 22 (-4.35%)
Mutual labels:  aws-ssm
ssm-ami-automation
Automated AMI creation using SSM
Stars: ✭ 14 (-39.13%)
Mutual labels:  aws-ssm
exec-with-secrets
Handle secrets in Docker using AWS KMS, SSM parameter store, Secrets Manager, or Azure Key Vault
Stars: ✭ 54 (+134.78%)
Mutual labels:  ssm
json2ssm
AWS Parameter Store import & export functionality for JSON
Stars: ✭ 47 (+104.35%)
Mutual labels:  ssm
bicycleSharingServer
🚲共享单车JavaWEB后台(ssm)
Stars: ✭ 86 (+273.91%)
Mutual labels:  ssm
library-booksystem
基于ssm的入门项目,图书在线管理系统。a library system.
Stars: ✭ 26 (+13.04%)
Mutual labels:  ssm
blog-ssm
一个简单漂亮的SSM博客系统。
Stars: ✭ 487 (+2017.39%)
Mutual labels:  ssm
terraform-aws-ssm-parameter-store
Terraform module to populate AWS Systems Manager (SSM) Parameter Store with values from Terraform. Works great with Chamber.
Stars: ✭ 87 (+278.26%)
Mutual labels:  ssm
IDEAPractice
Java练习 - Java基础知识,面试题,小demo,长期积累 | intellij idea + maven + tomcat
Stars: ✭ 45 (+95.65%)
Mutual labels:  ssm
xm-spring-boot
Spring Boot 基础项目
Stars: ✭ 33 (+43.48%)
Mutual labels:  ssm

SSMParameterStore

λErgonomic SSM Parameter Store wrapper for AWS Lambda designed with ease-of-use in mind, with built-in caching and idempotent preloading, TypeScript compile time checks, and handy autocompletion.

https://www.npmjs.com/package/ssm-parameter-store

Installation

npm install --save ssm-parameter-store

Changelog

2.1.2

  • Take an SSM parameter store instance as a constructor parameter instead of initializing it within the package.

Usage

const AWS = require('aws-sdk');
const SSMParameterStore = require('ssm-parameter-store');

const parameters = new SSMParameterStore(new AWS.SSM(), {
  SomeParameter: 'some_parameter',
  SomeNestedParameter: '/some/nested/parameter',
  NonExistentParameter: 'this_parameter_doesnt_exist_on_ssm'
});

exports.handler = async (event, context) => {
  await parameters.preload();
  // Fetch and cache all the parameter values from SSM.
  // The cache persists across warm start Lambda invocations, so subsequent
  // calls to preload will resolve instantly, making it safe to call every time
  // in the Lambda handler.

  await parameters.getAll();
  // Returns all the parameters as an object. Since we already fetched and cached
  // the values when we called `preload` this resolves instantly. If `preload` wasn't
  // called then we fetch the parameter values from SSM and cache them before returning
  // them as an object. Parameters that don't exist on SSM have empty strings as their values.
  //
  // {
  //   SomeParameter: '1',
  //   SomeNestedParameter: 'Hello, World!',
  //   NonExistentParameter: ''
  // }

  await parameters.preload({ ignoreCache: true });
  // Clear the cache and preload everything again from SSM

  await parameters.get('SomeParameter'));
  // Get a specific parameter value from SSM and return it
  // Caches it in case it hasn't been cached before.
  // If the parameter doesn't exist on SSM it returns an empty string.

  await parameters.get('SomeParameter', { ignoreCache: true });
  // Fetches this parameter value from SSM again and returns it ignoring any cached values.
  // The newly fetched value is cached before returning.
  // If the parameter doesn't exist on SSM it returns an empty string.

  await parameters.get('UndeclaredParameter');
  // Throws an error because this wasn't declared in the object passed to the
  // `new SSMParameterStore()` constructor.
  // If you're using TypeScript you'll also get a compile time error
}

Autocompletion

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].