Skip to content

v2.4.0 — four services

Choose a tag to compare

@SebaScript SebaScript released this 21 Oct 17:33
· 57 commits to main since this release

Four AWS services, one file each: the simplest infrastructure that runs the API, still created, deployed and destroyed by Terraform from the pipeline.

File Service What it is for
ec2.tf EC2 One machine that runs the API with Docker, with its firewall and role
rds.tf RDS The PostgreSQL database, reachable only from the machine
ecr.tf ECR The registry the pipeline pushes the API image to
s3.tf S3 The bucket for the CSV exports
  • Parameter Store and CloudWatch Logs are gone: the machine gets the database URL in its boot script.
  • Each service keeps its own firewall and permissions in its own file.
  • 12 resources, about 0.03 USD per hour while it exists.
  • Measured from the pipeline: about 9 minutes to deploy and install the API, about 3 to destroy.

See terraform/README.md to run it.