Create static secrets
Static secrets are created as key/value pairs. Static secrets typically persist over long periods of time.
Refer to the Design a secret strategy documentation for information and tips on app and secret conventions.
Prerequisites
- An HCP IAM user or service principal with the HCP contributor role or higher.
- An HCP Vault Secrets app created.
- Authenticated to the HCP Portal or HCP CLI
Examples
Create a new secret in the Vault Secrets application on your active profile:
Create a new secret in a Vault Secrets application by piping the plaintext secret from a command output: