Skip to content

Refactor aws-demo to use LocalStack instead of Moto#11

Merged
f34nk merged 8 commits intomainfrom
migrate/localstack
Dec 16, 2025
Merged

Refactor aws-demo to use LocalStack instead of Moto#11
f34nk merged 8 commits intomainfrom
migrate/localstack

Conversation

@f34nk
Copy link
Copy Markdown
Owner

@f34nk f34nk commented Dec 16, 2025

This PR does:

  • Replace Moto mock server with LocalStack for S3 testing
  • Remove Docker Compose setup in favor of standalone LocalStack container
  • Add environment variable support for AWS_ENDPOINT and AWS_DEFAULT_REGION
  • Move Terraform configuration from compose/terraform to terraform directory
  • Update CI workflow to install Terraform and run demo/integration tests

This can be verified by doing:

  • Run make demo to test generated code against LocalStack
  • Run make integration-test to test with Unison Share libraries
  • Verify LocalStack container starts on port 4566

…uration

Add envOrDefault helper function to read environment variables with fallback values.
Make defaultConfig configurable via AWS_ENDPOINT and AWS_DEFAULT_REGION env vars.
Switch default endpoint from Moto to LocalStack (http://localhost:4566).
Install Terraform via hashicorp/setup-terraform action.
Add make demo step to test generated code against LocalStack.
Add make integration-test step to test Unison Share libs against LocalStack.
Compiling unison code requires a lot of memory.
Larger runners in gihub is not an option right now.
@f34nk f34nk merged commit a43607c into main Dec 16, 2025
2 checks passed
@f34nk f34nk deleted the migrate/localstack branch January 1, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant