Skip to content

feat(infra): PR #5 — Terraform network + ECR foundation - #176

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1784572251-infra-network-ecr
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1784572251-infra-network-ecr

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jul 20, 2026

Copy link
Copy Markdown

Summary

Wave 2 / PR #5. First IaC PR: a self-contained Terraform root infra/network/ for the VPC/networking foundation + the ECR registry. Small and app-agnostic; later IaC PRs (#6 storage, #7 compute, #8 M2+scheduler) consume its outputs. Establishes the shared naming/tag convention and the infra/ layout via infra/README.md.

infra/
  README.md            # per-domain layout + shared convention (name_prefix, tags)
  .gitignore           # terraform state/.terraform/lockfile
  network/
    versions.tf        # TF >=1.5, aws ~>5.0; no backend committed (validates offline)
    variables.tf       # project, environment(dev/test/prod), aws_region, vpc_cidr, az_count, programs
    main.tf            # VPC, public/private subnets x AZ, IGW, 1x NAT, routes, batch SG (8080 in-VPC)
    ecr.tf             # aws_ecr_repository per var.programs (scan_on_push + lifecycle keep-last-10)
    outputs.tf         # vpc_id, subnet ids, batch_security_group_id, ecr_repository_urls

Parameterized so services onboard by config: var.programs = ["cbtrn02c"] drives ECR repos via for_each; var.environment feeds the name_prefix. Dataset naming untouched (AWS.M2.CARDDEMO.*).

Verified locally

  • terraform fmt -check, terraform init -backend=false, terraform validateSuccess! The configuration is valid.

Links

Link to Devin session: https://app.devin.ai/sessions/c0f261ce337a4aee965332f1754d037a
Requested by: @vibhaseshadri-cognition


Devin Review

Status Commit
⚪ Not started

Run Devin Review

Open in Devin Review (Staging)

PR #5 / Wave 2: self-contained Terraform root infra/network - VPC across AZs
with public/private subnets, IGW, single NAT gateway, batch security group
(health-probe 8080 within VPC), and one ECR repo per containerized CB* program
(parameterized by var.programs, scan-on-push + lifecycle policy). No backend
committed so it validates offline. infra/README.md documents the per-domain
layout and shared naming/tag convention.

Co-Authored-By: Vibha  Seshadri <vibha.seshadri@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

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.

0 participants