• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
trek10inc

Serverless Cloudformation Parameter Setter

by

Set CloudFormation parameters when deploying.

862
19
  1. Serverless Cloudformation Parameter Setter

serverless-cloudformation-parameter-setter

serverless

Serverless framework plugin to set CloudFormation Parameters when deploying

Installation

Install the plugin from npm

$ npm install --save serverless-cloudformation-parameter-setter

Add the plugin to your serverless.yml file:

plugins:
  - serverless-cloudformation-parameter-setter

Usage

CLI options

None

YAML settings

custom:
  cf-parameters:
    secretPassword: whatever # this could be serverless ssm variable or s3 variable or plaintext or whatever, do what you want

resources:
  # define the cloudformation parameters here
  Parameters:
    secretPassword:
      Type: string
      Description: database password
      NoEcho: true # keep it secret, keep it safe
  # use the parameters here
  Resources:
    TheDatabase:
      Type: AWS::RDS::DBInstance
      Properties:
        Engine: MySQL
        DBInstanceIdentifier: MySQL
        DBName: MySQL
        MultiAZ: true
        PubliclyAccessible: true
        MasterUsername: root
        MasterUserPassword: { Ref: secretPassword } # you can also send this to a lambda's env var
        DBInstanceClass: db.t2.large
        AllocatedStorage: 100
        DBSubnetGroupName:
          Ref: DBSubnetGroup # not included in this example
        VPCSecurityGroups:
          - Ref: DBSecurityGroup # not included in this example

Contents

  • serverless-cloudformation-parameter-setter
  • Installation
  • Usage
  • CLI options
  • YAML settings

Related

GuidesPluginsExamplesSlack CommunitySupport