serverless-ssm-api-git-version

0.2.1 • Public • Published

Serverless API git description to SSM Parameter Store

A simple plugin that, when deploying your API, updates SSM Parameter Store with the current git tag + commit. The aim is to provide an automatic history log of API deployments and their versions, tracking back to version control.

Configuration

The API git versions are updated into SSM using a specific key prefix, which by default is '/api-gateway//versions/'. If you want to supply a custom prefix, you can do so by putting the following configuration in your serverless config file:

custom:
  ssmApiGitVersion:
    ssmPrefix: '/my-custom/<stage>/prefix/'

The <stage> placeholder gets replaced with the stack stage.

Usage

Simply include the plugin in your serverless project:

plugins:
  - serverless-ssm-api-git-version

On sls deploy, SSM is updated automatically.

Readme

Keywords

none

Package Sidebar

Install

npm i serverless-ssm-api-git-version

Weekly Downloads

182

Version

0.2.1

License

MIT

Unpacked Size

3.17 kB

Total Files

3

Last publish

Collaborators

  • jlaitio