lapozzo / terraform-localstack-examples

Project with simple examples with terraform and Localstack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Localstack Examples

The goal of this project is to provide some Terraform examples provisioning resources in a AWS Localstack infrastructure, a nice alternative for local integration tests and validations.

Requirements

  • Localstack version 0.12.19.2
  • AWS Cli 2.0.56
  • Terraform v1.0.9

Useful commands

  1. AWS cli list s3 buckets on Localstack
aws --endpoint-url=http://localhost:4566 s3 ls
  1. Cloudwatch follow logs
aws --endpoint-url=http://localhost:4586 logs tail /aws/lambda/lambda_name --follow
  1. Invoke Lambda Function
aws --endpoint-url=http://localhost:4566 lambda invoke --function-name lambda_name out.log

Application 1

The application 1 is composed of a simple lambda microservice

About

Project with simple examples with terraform and Localstack


Languages

Language:HCL 73.8%Language:Python 10.7%Language:Makefile 10.7%Language:Shell 4.8%