Examples
Source: examples/. Most examples ship a docker-compose.yml and a demo.sh; check each README.
bash
cd examples/<name>
docker compose up -d
./demo.sh
docker compose down -v| Example | Purpose | Requires | Source |
|---|---|---|---|
apigw-websocket-chat | API Gateway WebSocket API with a Node.js Lambda that echoes each message back. | OpenTofu, wscat | GitHub |
azure-keyvault-app | Go app reads its config from a Key Vault secret, signs a payload with a Key Vault key and verifies it. | Go, Bash (curl) | GitHub |
azure-servicebus-cosmos-worker | Go worker consumes a Service Bus queue into Cosmos DB, plus a change-feed reader printing the new documents. | Go, Bash (curl) | GitHub |
azure-services | Exercises Azure Blob/Queue/Table Storage and Azure Cosmos DB side-by-side in one gopherstack instance. | Bash (curl, grep, head, sed) | GitHub |
cognito-api-auth | Secures API Gateway endpoints using Cognito User Pool Authorizer and JWTs. | OpenTofu, Bash | GitHub |
ddb-lambda-chain | A 3-table event stream pipeline where DynamoDB Streams trigger a Go Lambda function. | Go, Bash | GitHub |
ec2-docker | Demonstrates provisioning EC2 instances and running SSH commands on them locally. | Bash (ssh, dig) | GitHub |
elasticache-valkey | Demonstrates provisioning an ElastiCache Valkey cluster and connecting via embedded DNS. | Bash (valkey-cli or redis-cli) | GitHub |
eventbridge-sqs | Routes custom events from Amazon EventBridge to an SQS queue. | AWS CLI v2 | GitHub |
extensions | Example: extensions. | Docker Compose, Bash | GitHub |
gcp-bigquery-gcs-load | Uploads a CSV to Cloud Storage, runs a BigQuery load job and an aggregate query. | Go, Bash (curl) | GitHub |
gcp-run-pubsub-push | A Cloud Run service (Docker image) receiving Pub/Sub push messages. | Docker, Go, Bash (curl) | GitHub |
iam-role-enforcement | IAM enforcement with STS AssumeRole: an assumed role is allowed on one bucket and table and denied on another. | AWS CLI v2 | GitHub |
kinesis-lambda-aggregator | Kinesis stream invokes a Node.js Lambda to aggregate events into DynamoDB. | OpenTofu, Bash | GitHub |
s3-access-logs | Demonstrates configuring S3 server access logging. | AWS CLI v2 | GitHub |
s3-lambda-processor | S3 object uploads trigger a Go Lambda function to process the object. | OpenTofu, Go, Bash | GitHub |
sns-sqs-fanout | A pub/sub fanout architecture distributing SNS messages to multiple SQS queues. | AWS CLI v2 | GitHub |
stepfunctions-order-workflow | Serverless orchestration using Step Functions to manage an order processing state machine. | OpenTofu, Bash | GitHub |
