Skip to content

claranet-it/python-localstack-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python + Localstack + AWS SDK

This is a simple example of how to use the AWS SDK with Localstack.

Pre-requisites

  • Docker
  • Python 3.12
  • Terraform

Services

  • S3
  • S3 + Trigger
  • DynamoDB
  • Lambda
  • SQS

Python App

  • Create a virtual environment
python3 -m venv .venv
  • Install the requirements
pip install -r requirements.txt
  • Run tester app
make tester

Terraform

Copy the terraform.tfvars.example to terraform.localstack.tfvars and fill in the values.

Create infrastructure:

make tflocal-create