Follow this general procedure for working with API keys or other secrets using the Secrets Manager:
createSecret()
function. Assign a name to the secret.getSecret()
function with the secret name assigned in the Secrets Manager. When the code runs, the value of the secret is extracted from the Secrets Manager.