The Serverless Framework Dashboard enables you to create and manage parameters, helping you to configure and secure your services by securely storing parameters used by your Serverless Framework services. The Serverless Framework Dashboard provides an interface to store and encrypt parameters and manage access to those parameters from your services. The Serverless Framework loads the parameters when the service is deployed.
All parameters are treated as sensitive values, therefore they are not visible in the dashboard once saved, they are always encrypted at rest, and only decrypted during deployment.
Create a new parameter by navigating to profiles in the Serverless Framework Dashboard.
- Navigate into the profile you would like to use for the Parameter.
- Navigate into the parameters tab.
- Set a key and value and click add.
- Repeat Step 3 for each parameter you would like to add.
- When done, click save changes.
To use a parameter, first make sure that the profile containing that parameter is configured as the default deployment profile for your application, or it is configured as the profile on the stage and application you are using.
In your serverless.yml
file add the variable ${param:<key>}
anywhere you would like to use the parameter. The <key>
references the parameter key configured in the profile.
When you run serverless deploy
the parameter values will be obtained, decrypted and used to replace the variables in the serverless.yml
for the deployment.