How to use the secret management feature
To effectively manage and utilize secrets, the recommended workflow includes:- Adding secrets (this step can be repeated for multiple secrets)
- Referencing secrets by name when creating a new build
- Accessing secrets from your game server
- Updating secrets as necessary
Adding secrets
Secrets can be added via the UploadSecret API. This API allows for the uploading of a new secret to the service, or the updating of an existing secret with the ForceUpdate parameter set to true.Deploying secrets
To deploy secrets in newly created VMs, incorporate the secret in a build using the GameSecretReferences parameter in the CreateBuild APIs (applicable to both container and process-based deployments).Once a build is created, it is not possible to add new secrets to it; however, updating an existing secret will allow its updated value to be used in new VMs (existing VMs will retain the original values).
