Skip to content

jazztong/terraform-lambda-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-lambda-go

Sample project to build lambda API with Go and terraform

Requirements

Ensure your terraform version must be more than 0.12.xxx

How to

The following explain the support command in this project in Make file

How to build

Run the following command to generate go binary

make build

How to init terraform

Run the following command to initialize terraform

You require to run one time only

make init

How to review terraform plan

Run the following command to review the changes that terraform going to apply to your infrastructure

make plan

How to apply terraform changes

Run the following command to deploy your changes to your aws account

make apply

How to test your api

After terraform apply successful, you will see api_url output to your console, that will be your api to test

How to clean up your infrastructure

After testing complete, you can run the following command to clean up your lambda and api gateway

make destroy

About

Sample project to build lambda API with terraform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors