lambda-example

command
v6.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 2 Imported by: 0

README

Running personnel-sync as a Lambda process

This personnel-sync application is a good use case for Serverless operation. As a primarily scheduled job, running it in a Serverless/Lambda environment is a great way to reduce infrastructure overhead.

Important warning

This application is configured using a config.json file that may include secrets. Be sure not to store this file in a public repository.

Setup

The contents of this lambda-example directory are intended to downloaded/copied to your own filesystem and repository.

After downloading the files, copy config.example.json to config.json and edit as needed. Also copy .env.example to .env and insert AWS credentials for Serverless to use to deploy the Lambda function.

Due to dependencies on Go to build the application and Serverless to interact with AWS to create and deploy the Lambda the easiest way to do all this is using the included Dockerfile and docker-compose.

Run make deploy. This will build the Docker image, run go get inside the container, build the Go binary, and use Serverless to deploy the Lambda function to the default Serverless stage dev, but you can update the command in the Makefile to change the stage as desired.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL