DSGT-DLP / Deep-Learning-Playground

Web Application where people new to Deep Learning can input a dataset and toy around with basic Pytorch modules without writing any code
MIT License
26 stars 8 forks source link

Feature 1137 Create Terraform scripts for ECS backend #1141

Closed andrewpeng02 closed 8 months ago

andrewpeng02 commented 8 months ago

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

sonarcloud[bot] commented 8 months ago

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 commented 8 months ago

@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 commented 8 months ago

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