Skip to content

This repo for how to use localstack as Mock AWS Cloud.

Notifications You must be signed in to change notification settings

longbuivan/localstack-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy AWS Lambda Functions to Local Environments with Terraform

Using terraform to deploy Mock AWS Infrastructure for development purpose.

Prerequisite

  • Docker
  • Terraform
  • AWS CLI

Setup

  • Create localstack-external network for docker
  • Docker-compose up to start localstack
  • Terraform init for downloading providers
  • Terraform plan for checking any change in current state
  • Terraform apply for deploying code to Mock AWS
  • Terraform destroy for kill Mock AWS resources

Execution

Example

Invoke Lambda Function: aws --endpoint=http://localhost:4574 lambda invoke --function-name arn:aws:lambda:ap-southeast-2:000000000000:function:poc_lambda response.json

About

This repo for how to use localstack as Mock AWS Cloud.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published