Recipes - rollthecloudinc/hedge GitHub Wiki

Bazel build disable blzmod and use workspace instead for now until migrated to blzmod.

bazel build //func/grant_access --enable_bzlmod=false --enab
le_workspace=true

Bazel / Gazelle

Add New Library

New libraries are added using gazelle.

bazel run //:gazelle -- update-repos github.com/awslabs/aws-lambda-go-api-proxy

Alternative

When using go get update all.

bazel run //:gazelle -- update-repos -from_file=go.mod

Deploy

prod

sls deploy --aws-profile prod --stage prod

Emails

Create email template in ses

https://docs.aws.amazon.com/ses/latest/dg/send-personalized-email-api.html

aws ses create-template --cli-input-json file://email_templates/mytemplate.json --region us-east-1

Local Serverless testing

https://www.serverless.com/framework/docs/providers/aws/cli-reference/invoke-local

serverless invoke local --function functionName

Resources