Skip to content

About

Demo app for LocalStack Cloud Pods collaboration feature

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Cloud Pods Collaboration Demo

A sample product API built with API Gateway, Lambda (Java), and DynamoDB, designed for collaborative debugging workflows using LocalStack Cloud Pods. Follow the end-to-end walkthrough for this project: https://docs.localstack.cloud/aws/tutorials/cloud-pods-collaborative-debugging/

cloud-pod-collab

Prerequisites

export LOCALSTACK_AUTH_TOKEN=<your-auth-token>

Sample Variants

Quick Start

  1. Start LocalStack:
docker compose up -d
  1. Build Lambda artifacts:
cd lambda-functions
mvn clean package
  1. Deploy infrastructure:
cd terraform
./run-tflocal.sh
  1. Invoke the API:
./invoke.sh

For OpenTofu, set LSTK_TF_CMD=tofu and run lstk tf in opentofu/ (see opentofu/instructions.md).

  1. Test the scenario from the tutorial:
./test.sh

The test needs LocalStack to enforce IAM, as docker-compose.yml does with ENFORCE_IAM=1. With lstk, start it with LOCALSTACK_ENFORCE_IAM=1 lstk start. It adds two products, checks that reading one fails because the policy is missing dynamodb:GetItem, then adds the permission and checks the read works. It restores the original policy version when it exits. Set TF_DIR=opentofu to test the OpenTofu deployment.

License

Licensed under Apache License 2.0. See LICENSE.

About

Demo app for LocalStack Cloud Pods collaboration feature

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages