serverless / serverless-google-cloudfunctions

Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
https://www.serverless.com
MIT License
272 stars 127 forks source link

Support serviceAccountEmail and GS Variable #215

Closed luisgreen closed 4 years ago

luisgreen commented 4 years ago

What did you implement

Added support for Google Cloud Storage variable fetch and Service Account Email

How can we verify it

serverless.yaml

service: my-super-functions

provider:
  name: google
  stage: dev
  runtime: nodejs8
  region: us-central1
  project: my-super-project

plugins:
  - serverless-google-cloudfunctions

package:
  exclude:
    - node_modules/**
    - .gitignore
    - .git/**

functions:
  gcp-sites:
    #<FUNCTION DEFINITION GOES HERE>
    serviceAccountEmail: devops-functions@${self:provider.project}.iam.gserviceaccount.com
    environment:
      ALGO: ${gs:my-superbucket/myfileinbucket.txt}

Is this ready for review?: YES Is it a breaking change?: NO