Skip to content

BenSaxon/go-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Lambda

This repo is an example repo for deploying a golambda to AWS using AWS CDK.

Steps:

  1. install the packages
xc get

or

go get ./...
  1. configure aws
aws configure

or set the following environment variables in your command line.

export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."
export AWS_SESSION_TOKEN="..."

You will need an IAM user to access these. After logging in, click a user, Then click Command line or programmatic access. Copy your environment variables.

  1. run bootstrap
cdk bootstrap
  1. deploy
cdk deploy

Tasks

These tasks follow eXeCute syntax, therefore can be ran with xc [taskname].

get

Install the Go dependencies for the project.

go get ./...

build-api

Builds the api/.

go build ./...

run-api

Runs the api locally.

Requires: build-api

go run api/main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages