@otani.sg/serverless-cf-parameters

1.1.0 • Public • Published

CloudFormation Parameters Plugin for Serverless

npm (scoped) npm NPM

Serverless plugin for setting CloudFormation parameters values using the same --parameter-overrides flag that AWS CLI uses

Install

$ sls plugin install -n @otani.sg/serverless-cf-parameters

Usage

Declare Parameters section as you usually would in a CloudFormation template.

# ...
resources:
  Resources:
    # ...
  Parameters:
    InstanceType:
      Type: String
      Default: t2.micro
    DiskSize:
      Type: String

When deploy, use --parameter-overrides to set the parameters' values:

$ sls deploy --parameter-overrides InstanceType=t2.small --parameter-overrides DiskSize=15GB

The parameters' values will be re-used in next deployment if no override is specified, which is the same behavior with AWS CLI deploy command.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @otani.sg/serverless-cf-parameters

    Weekly Downloads

    61

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    5.84 kB

    Total Files

    3

    Last publish

    Collaborators

    • phuong.otani
    • harada.otanitrading