Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 1137 Create Terraform scripts for ECS backend #1141

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

andrewpeng02
Copy link
Contributor

@andrewpeng02 andrewpeng02 commented Feb 27, 2024

Set up AWS infrastructure for the backend

Github Issue Number Here: #1137

What user problem are we solving?
We want to use Terraform for the aws infrastructure so that everything is defined in code. This Terraform code sets up the architecture specified in the diagram below. ALB routes requests to ECS fargate, which houses the Django backend containers. It also sets up ECS with EC2 launch type (g4dn.xlarge) that'll eventually be used for the training workers, but right now they don't do anything yet..

Testing Methodology
cd dlp-terraform/ecs
terraform apply
HTTP GET http://alb-[id].us-east-1.elb.amazonaws.com/api/datasets/default/IRIS/columns gets the proper columns when passed a Bearer token
terraform destroy

Backend architecture drawio

@andrewpeng02 andrewpeng02 force-pushed the feature-1137-terraform-ecs branch 3 times, most recently from 7a91557 to fb6e528 Compare February 27, 2024 19:52
@andrewpeng02 andrewpeng02 linked an issue Feb 27, 2024 that may be closed by this pull request
@andrewpeng02 andrewpeng02 changed the title Feature 1137 terraform ecs Feature 1137 Create Terraform scripts for ECS backend Mar 1, 2024
@andrewpeng02 andrewpeng02 marked this pull request as ready for review March 1, 2024 18:01
@andrewpeng02 andrewpeng02 requested a review from a team as a code owner March 1, 2024 18:01
Copy link

sonarcloud bot commented Mar 1, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@karkir0003
Copy link
Member

@andrewpeng02 AWESOME work on this! Really love the thoroughness here. Love the detailed testing provided. I added a few minor questions/comments. Could you address those and tag me for re-review?

Also, what would be the next steps after this PR?

@andrewpeng02
Copy link
Contributor Author

Next steps are moving the training into the training containers #1136 @karkir0003

@andrewpeng02 andrewpeng02 added this pull request to the merge queue Mar 5, 2024
Merged via the queue into nextjs with commit 83d8827 Mar 5, 2024
19 checks passed
@andrewpeng02 andrewpeng02 deleted the feature-1137-terraform-ecs branch March 5, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]: Create Terraform scripts for ECS backend
2 participants