Page MenuHomePhabricator

[terraform] Dont load-balance EC2 services in staging
ClosedPublic

Authored by bartek on Aug 3 2023, 2:17 AM.
Tags
None
Referenced Files
F3718776: D8712.id29662.diff
Wed, Jan 8, 10:36 AM
Unknown Object (File)
Sun, Jan 5, 2:49 PM
Unknown Object (File)
Fri, Jan 3, 12:01 AM
Unknown Object (File)
Fri, Dec 20, 10:31 AM
Unknown Object (File)
Fri, Dec 20, 10:31 AM
Unknown Object (File)
Fri, Dec 20, 10:28 AM
Unknown Object (File)
Fri, Dec 20, 6:39 AM
Unknown Object (File)
Wed, Dec 18, 2:03 AM
Subscribers

Details

Summary

This stack resolves issues encountered when setting up fresh staging AWS account with Terraform.

On staging we don't have legacy EC2 services, so these data blocks errored because couldn't find them.
Made them conditional.
Task for deleting legacy EC2 instances: ENG-4543 - worth doing later after everything is confirmed to be working.

Test Plan

terraform plan for production doesn't change anything, for staging it doesn't error.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Aug 3 2023, 2:48 AM
bartek added inline comments.
services/terraform/remote/main.tf
19 ↗(On Diff #29500)

I find this helper variable very handy

This revision is now accepted and ready to land.Aug 4 2023, 12:07 PM
This revision was landed with ongoing or failed builds.Aug 8 2023, 12:19 PM
This revision was automatically updated to reflect the committed changes.