dnd-deploy

Infrastructure for dnd5eapi.co deployment to AWS. Built on Elastic Container Sevice + Cloudfront🎲

Stars
2

Deploy

AWS deployment of the D&D 5e REST API using AWS ECS/Fargate.

Usage

Deploying the application to AWS with Pulumi.

# Clone the repository
gh repo clone brittonhayes/dnd-deploy

# Install dependencies
npm install

# Deploy with pulumi
pulumi up

Infrastructure

The compute infrastructure is built on AWS Elastic Container Service with request caching handled by AWS Cloudfront and routing handled by AWS Elastic Load Balancing

  1. 1x AWS ECS Cluster - dnd-api-cluster
  2. 1x ECS Service - dnd-api-service
  3. 3x AWS ECS Tasks - api + db + cache
  4. 1x AWS Application Loadbalancer - dnd-api-loadbalancer
  5. 1x Cloudfront Distribution

Development

All source code for infrastructure configurations are located in the src/ directory. Infrastructure component definitions can be found in src/components.