Skip to content

chore: remove unused AWS Terraform configuration - #285

Merged
birme merged 2 commits into
mainfrom
chore/remove-unused-aws-terraform
Aug 10, 2026
Merged

chore: remove unused AWS Terraform configuration#285
birme merged 2 commits into
mainfrom
chore/remove-unused-aws-terraform

Conversation

@alexbj75

Copy link
Copy Markdown
Contributor

What

Removes infra/terraform/aws/ (main.tf, .terraform.lock.hcl) and the ## Terraform infrastructure section of readme.md that documented how to run it.

Why

This configuration describes infrastructure that is no longer in use — nothing from it is deployed on AWS anymore. Jonas Birmé (VP R&D) confirmed on 2026-07-23 that none of it is used any longer and approved removing it.

Beyond being dead code, the security group in main.tf opened the MongoDB port and SSH to 0.0.0.0/0 and ::/0 on an instance with a public IP. Nothing is running from this config, so this is not a live exposure — but it is a pattern that should not be copied into any new setup, and it has already caused a review to reach the wrong conclusion about our current footprint.

Scope / not affected

  • The Open Source Cloud deploy path is untouched. infra/terraform/eyevinn-osc/ and the OSC Terraform examples referenced from the readme remain as-is.
  • No application code is touched. The diff is two deleted infra files plus one readme section.
  • The aws/ecs/taskdef-*.json task definitions and the ECR/ECS steps in .github/workflows/development.yml are a separate deploy path and are deliberately left alone in this PR.

Reference checks performed

Searched the repository for anything pointing at the removed directory — CI workflows, package.json scripts, docs/readme, and Terraform resource names:

Reference found Action
readme.md ## Terraform infrastructure (cd infra + terraform plan/apply -var-file=...) Removed in this PR; ### Contributing promoted to ## since it was nested under the removed section
.github/workflows/development.ymlaws/ecs/taskdef-dev.json, ECR/ECS deploy steps Left alone — different directory, separate deploy path
infra/terraform/eyevinn-osc/README.md Left alone — OSC path, points at the external examples repo
.gitignore.terraform/ Left alone — generic, still applies to the OSC config
package.json scripts No references

No workflow, script, or Makefile invokes the removed directory.

Verification

  • npm ci — clean
  • npm run lint — 0 errors (278 pre-existing warnings, unchanged)
  • npm run typecheck / npm run pretty — clean, no diff produced
  • npm test — 241/243 pass. The 2 failures are in src/api_re_auth.test.ts/src/api_share.test.ts and pass when run in isolation (pre-existing flakiness under the full parallel run). This PR touches no application code.

alexbj75 and others added 2 commits August 10, 2026 08:24
The infra/terraform/aws configuration describes infrastructure that is no
longer in use — nothing from it is deployed on AWS anymore. Removing the
dead configuration also removes a security group definition that opened
MongoDB and SSH to 0.0.0.0/0 and ::/0 on a public instance, which is a
pattern that should not be copied into new setups.

The readme section documenting the removed Terraform workflow is dropped
with it. The Open Source Cloud deploy path (infra/terraform/eyevinn-osc
and the OSC Terraform examples) is unaffected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@alexbj75
alexbj75 requested a review from birme as a code owner August 10, 2026 06:30
@birme
birme merged commit fface6c into main Aug 10, 2026
4 checks passed
@LucasMaupin LucasMaupin mentioned this pull request Aug 20, 2026
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.

2 participants