Repository navigation
v2.4.0 — four services
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.