Page MenuHomePhabricator

[services][terraform] Set up electron-update ECS service
ClosedPublic

Authored by bartek on Jul 20 2023, 5:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 2:35 PM
Unknown Object (File)
Sat, Nov 23, 12:52 PM
Unknown Object (File)
Tue, Nov 5, 6:53 AM
Unknown Object (File)
Tue, Nov 5, 6:53 AM
Unknown Object (File)
Tue, Nov 5, 6:53 AM
Unknown Object (File)
Tue, Nov 5, 6:53 AM
Unknown Object (File)
Tue, Nov 5, 6:52 AM
Unknown Object (File)
Fri, Nov 1, 4:36 PM
Subscribers

Details

Summary

This diff introduces Terraform configuration that is needed to bootstrap the electron-update service.
It is deployed as a ECS Fargate service - this diff more or less the deployment configuration for services.

A few notes:

  • The task definition, ecs-service and target-group were created using Terraform
  • Existing load balancer was imported into Terraform state and the ECS target group was linked to it
  • A test listener was added to be able to reach the ECS service directly. I'll delete it once we redirect 100% traffic to the ECS service.

Depends on D8583

Test Plan

The service is already deployed to production and handles most of real network traffic.

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.Jul 20 2023, 5:44 AM
bartek added inline comments.
services/terraform/remote/service_electron_update.tf
24–32 ↗(On Diff #28884)

I created the task definition in the AWS Console and copy-pasted the defaults here

39 ↗(On Diff #28884)

I'm monitoring the usage, we might go down to 256MB

200–203 ↗(On Diff #28884)

I'm not planning to set up domains in Terraform, so this output value is useful when adding Alias/A records

This revision is now accepted and ready to land.Jul 25 2023, 4:15 AM