Accessing Google Secret Manager using Serverless framework

January 18, 2023

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:


Profile picture

Written by An anonymous coder who lives and works building useful things. Mostly focusing on Django, Vue and overall Python examples.