Docker Compose LocalStack


Onexlab

In this article, We will show you how you can use docker-compose to create LocalStack services.

LocalStack provides an easy-to-use test/mocking framework for developing Cloud applications. This means you can test AWS cloud resources locally on your machine.

Note: LocalStack supporting only AWS cloud stack.

LocalStack spins up the following core Cloud APIs on your local machine.

  • ACM , API Gateway, CloudFormation, CloudWatch
  • CloudWatch Logs, DynamoDB, DynamoDB Streams
  • EC2, Elasticsearch Service, EventBridge (CloudWatch Events)
  • Firehose, IAM, Kinesis, KMS, Lambda, Redshift
  • Route53, S3, SecretsManager, SES, SNS
  • SQS, SSM, StepFunctions, STS
  • Reduce Cost
  • Test AWS Cloud Resource Locally
  • Learn AWS Cloud Resource Locally
  • Debug Locally

We hope you have installed Docker on your system else you can check the following article to install Docker.

Note: Starting with version 0.11.0, all APIs are exposed via a single edge service, which is accessible on http://localhost:4566 by default. If you look into the following file we have used EDGE_PORT=4566.

In the above file, We are creating 2 Services as below with default region us-east-1

  1. Lambda
  2. S3

If you run the following command

docker-compose up

You will see the LocalStack container is running successfully

To check all the services type the following URL on your browser

http://localhost:4566/health

if you look at the above screenshot 4 services are running

  1. lambda
  2. logs
  3. s3
  4. cloud watch

But in our docker-compose.yml file, we have added only 2 services which are

  1. lambda
  2. s3

With lambda service logs and cloud watch service enabled by default.

Thank you

oxlb/docker-compose-localstack

You can’t perform that action at this time. You signed in with another tab or window. You signed out in another tab or…

github.com


Leave a Comment

Your email address will not be published. Required fields are marked *