Skip to content

[DevOps] Infrastructure as Code (IaC) AWS Provisioning via Terraform #175

Description

@AlAfiz

Description: Develop the initial Terraform configuration files (main.tf, variables.tf, etc.) to provision the cloud infrastructure required to host the TradeFlow API, focusing on AWS ECS (Elastic Container Service) and RDS (Relational Database Service).
Context / Motivation: Manual infrastructure provisioning is unscalable and prone to configuration drift. Implementing IaC ensures our staging and production environments are strictly version-controlled and fully auditable.
Acceptance Criteria: - [ ] Write Terraform modules to provision an AWS VPC with public and private subnets.

  • Define an RDS PostgreSQL instance housed within the private subnet.
  • Define an ECS Cluster with Fargate task definitions for running the API's Docker container.
  • Configure an Application Load Balancer (ALB) to route HTTP/HTTPS traffic to the ECS tasks.
    Technical Pointers: Ensure the PostgreSQL credentials are not hardcoded in the Terraform files; utilize AWS Secrets Manager or prompt for variables during apply. Setup appropriate IAM execution roles for the Fargate tasks.

Metadata

Metadata

Assignees

Labels

DevopsGrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaignhelp wantedExtra attention is needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions