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
Unknown Object (File)
Sat, Nov 23, 11:41 PM
Unknown Object (File)
Tue, Nov 19, 5:47 AM
Unknown Object (File)
Sun, Nov 17, 3:50 AM
Unknown Object (File)
Sun, Nov 17, 3:50 AM
Unknown Object (File)
Sun, Nov 17, 3:48 AM
Unknown Object (File)
Sat, Nov 16, 11:28 PM
Unknown Object (File)
Thu, Nov 14, 2:31 AM
Unknown Object (File)
Oct 17 2024, 1:06 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.