Skip to main content

Storing Secrets and Environment Variables

Secrets and environment variables can be injected into the containers that run your apps. To create a secret in the dashboard, go to Settings → Secrets, click Create secret, and enter a name and value. You can update or delete secrets from the same page. You can also manage secrets through the CLI:

Using Secrets

Once created, you can access a secret like an environment variable:
To give a secret a different variable name, or to set secrets and other environment variables with beam deploy or the dashboard, use environment references such as ${{secret.AWS_ACCESS_KEY}}.

Passing Secrets to on_start

If your app used an on_start function, secrets can be passed to that function as well.

CLI Commands

List Secrets

Create a Secret

If your secret contains special characters, you may need to escape them with a backslash. For example, a$b would need to be a\$b.

Show a Secret

Modify a Secret

The new value takes effect the next time a container starts.

Delete a Secret