0.2.1 • Published 4 years ago

serverless-service-registry v0.2.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

serverless-service-registry

Serverless plugin for automatically adding ssm variables when deploying.

Features

  • Adds API Gateway id to SMM values
  • Custom SMM values from serverless.yml
  • Delete SMM on remove

How to use

####Installation Install it to dev dependencies

npm i serverless-service-registry --save-dev

and add it to your plugins in serverless.yml

plugins:
  - serverless-service-registry

####Setup

In your serverless.yml you can add following properties:

######Example

custom:
  serviceRegistry:
    serviceName: products-dev
    value:
      public: false
    description:
      A Nice Microservice!

All properties under value will be added to the value field of SMM.

The description property is your SMM description.

Now just deploy via

sls deploy --aws-profile yourPrfoile

Done!

After deploy

After deplyoing your SMM should look something like that.

{
"public": false,
"region":"us-east-1",
"stage":"dev",
"providerName":"aws",
"apiId":"rje0402x51",
"invokeUrl":"https://rje0402x51.execute-api.us-east-1.amazonaws.com/dev"
}

The public field is from your serverless.yml.

Deleting

If you removing your serverless project via

sls remove --aws-profile yourPrfoile

the SSM Parameter gets also removed.

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago