Skip to content

Generate Terraform file for deploying AWS Lambda on Go project

License

Notifications You must be signed in to change notification settings

easy-lamb/easy-lamb-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Lamb Go

Parse, Build and Generate Terraform code for deploying AWS Lambda functions using Easy Lamb Terraform module.

Features

  • Parse a directory containing AWS Lambda functions
  • Build Terraform code for deploying AWS Lambda functions
  • Generate Terraform code for deploying AWS Lambda functions

Installation

go install github.com/easy-lamb/easy-lamb-go@latest

Usage

Create a easy-lamb.json file with your configuration at the root of your project

{
  "lambdaDir": "functions",
  "terraformDir": "devops/terraform",
  "terraformFilename": "functions.tfvars",
  "buildOutput": "bin",
  "defaultParams": {
    "memory": "128",
    "timeout": "30",
    "handler": "index.handler",
    "runtime": "provided.al2023",
    "authorizer": "b2c-authorizer"
  },
  "dotenvLocation": ".env"
}

Run the following command

# Create a functions.tfvars file
easy-lamb-go parse
# Build your go functions and create functions.tfvars file
easy-lamb-go build

About

Generate Terraform file for deploying AWS Lambda on Go project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages