If you’re ever in a pickle trying to access Google Secret Manager in one of your Serverless framework .yaml
files, there’s quite a easy way to do it.
Simply add:
functions:
function:
handler: ServerlessFunction
secrets:
NameOfSecret:
secret: SECRET
version: latest
Sources: