-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6875a7
commit ef699a8
Showing
7 changed files
with
849 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
README | ||
====== | ||
|
||
This directory contains Terraform files that stand up raw-data services | ||
on AWS. The following components are managed: | ||
|
||
1. module.vpc - Networking components, subnets, gateways, routes | ||
2. module.db - AWS RDS Aurora serverless database with bells and whistles. | ||
3. resource.aws_ecs_cluster - An ECS cluster to contain the services | ||
4. module.alb - Application load balancer for the API | ||
5. module.alb-flower - Application load balancer for the monitoring service. | ||
6. module.ecs-api - API containers | ||
7. module.ecs-worker-daemon - Containers for daemon workers | ||
8. module.ecs-worker-ondemand - Containers for on-demand workers | ||
9. module.ecs-flower - Containers for flower: the queue monitoring service. | ||
10. redis resources - Managed by AWS Elasticache and associated services. | ||
11. An ECS instance (VM) running the backend service. | ||
12. An ECS instance for SSH tunnels (jump-hosts) | ||
13. Route53 resources for DNS mapping for the load balancers. | ||
|
||
RUNNING TERRAFORM | ||
================= | ||
|
||
TBD | ||
|
||
Variables | ||
--------- | ||
|
||
- TBD | ||
|
||
TODO | ||
==== | ||
|
||
- Remove OSM app credentials from worker containers | ||
- Event-driven scaling for workers | ||
- ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
data "aws_ami" "debian_bookworm_x86" { | ||
most_recent = true | ||
|
||
filter { | ||
name = "name" | ||
values = ["debian-12-amd64-*"] | ||
} | ||
|
||
filter { | ||
name = "virtualization-type" | ||
values = ["hvm"] | ||
} | ||
|
||
filter { | ||
name = "architecture" | ||
values = ["x86_64"] | ||
} | ||
|
||
owners = ["136693071363"] # Debian | ||
} | ||
|
||
data "aws_ami" "debian_bookworm_arm" { | ||
most_recent = true | ||
|
||
filter { | ||
name = "name" | ||
values = ["debian-12-arm64-*"] | ||
} | ||
|
||
filter { | ||
name = "virtualization-type" | ||
values = ["hvm"] | ||
} | ||
|
||
filter { | ||
name = "architecture" | ||
values = ["arm64"] | ||
} | ||
|
||
owners = ["136693071363"] # Debian | ||
} | ||
|
||
data "aws_ami" "debian_bullseye_x86" { | ||
most_recent = true | ||
|
||
filter { | ||
name = "name" | ||
values = ["debian-11-amd64-*"] | ||
} | ||
|
||
filter { | ||
name = "virtualization-type" | ||
values = ["hvm"] | ||
} | ||
|
||
filter { | ||
name = "architecture" | ||
values = ["x86_64"] | ||
} | ||
|
||
owners = ["903794441882"] # Debian | ||
} | ||
|
||
data "aws_ami" "debian_bullseye_arm" { | ||
most_recent = true | ||
|
||
filter { | ||
name = "name" | ||
values = ["debian-11-arm64-*"] | ||
} | ||
|
||
filter { | ||
name = "virtualization-type" | ||
values = ["hvm"] | ||
} | ||
|
||
filter { | ||
name = "architecture" | ||
values = ["arm64"] | ||
} | ||
|
||
owners = ["903794441882"] # Debian | ||
} |
Oops, something went wrong.