A bare-bones serverless Express API template using Pulumi's cloud.HttpServer built on AWS API Gateway and Lambda functions, serving a dynamic DynamoDB-based hit counter.
- Express
- Pulumi cloud.HttpServer
- AWS Lambda
- AWS API Gateway
- AWS DynamoDB
You wil need Pulumi cli, then:
# Deploy resources:
pulumi up
# Test the endpoint:
pulumi stack select
for i in {1..5}; do curl $(pulumi stack output url); done
# Clean up resources:
pulumi destroy
pulumi stack rm