Google Parameter Manager provides a centralized storage for all configuration parameters related to your workload deployments. Parameters are variables, often in the form of key-value pairs, which customize how an application functions. These samples demonstrate how to access the Parameter Manager API using the Google Node API Client Libraries.
You must enable the Parameter Manager API for your project in order to use these samples
You must ensure that the user account or service account you used to authorize your gcloud session has the proper permissions to edit Parameter Manager resources for your project. In the Cloud Console under IAM, add the following roles to the project whose service account you're using to test:
- Parameter Manager Admin (
roles/parametermanager.admin) - Parameter Manager Parameter Accessor (
roles/parametermanager.parameterAccessor) - Parameter Manager Parameter Version Adder (
roles/parametermanager.parameterVersionAdder)
To use the rendering of secret through parameter manager add the following role also:
- Secret Manager Secret Accessor (
roles/secretmanager.secretAccessor)
More information can be found in the Parameter Manager Docs