Page MenuHomePhabricator

[terraform] initial ecs setup for keyserver primary
ClosedPublic

Authored by will on Jun 20 2024, 8:30 PM.
Tags
None
Referenced Files
F3373264: D12531.id42416.diff
Tue, Nov 26, 8:36 AM
Unknown Object (File)
Sat, Nov 23, 6:50 PM
Unknown Object (File)
Thu, Nov 21, 2:49 PM
Unknown Object (File)
Wed, Nov 20, 9:30 PM
Unknown Object (File)
Sat, Nov 16, 4:03 AM
Unknown Object (File)
Fri, Nov 15, 7:06 AM
Unknown Object (File)
Fri, Nov 1, 9:18 PM
Unknown Object (File)
Fri, Nov 1, 9:18 PM
Subscribers

Details

Summary

Drafting this for some initial feedback. This sets up ecs cluster with primary keyserver task def

Depends on D12475

Test Plan

Successfully running the the keyserver task in a docker container

Diff Detail

Repository
rCOMM Comm
Branch
keyserver_to_aws
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will held this revision as a draft.
services/terraform/self-host/aws_ecs.tf
10–12

Is service connect needed in self-host? Are nodes going to talk to each other?

services/terraform/self-host/aws_iam.tf
48–58

I'd use jsonencode() - see examples in aws_iam.tf e.g. for resource "aws_iam_role" "ecs_task_execution".

Just see you used it right below

services/terraform/self-host/keyserver_primary.tf
3

You're going to change this later to comm repo?

70–76

can we use jsonencode()?

services/terraform/self-host/aws_ecs.tf
10–12

That's a good question. I don't think so. I'll remove for now and add back in a separate diff if it comes up

services/terraform/self-host/keyserver_primary.tf
3

Yep! Before landing the stack, I'll test and push the primary and secondary images on the commapp repo

will published this revision for review.Jun 24 2024, 6:42 PM
will added inline comments.
services/terraform/self-host/aws_iam.tf
48–58

Will include in next rebase

services/terraform/self-host/keyserver_primary.tf
70–76

Will include in next rebase

Accepting but please address feedback before landing

This revision is now accepted and ready to land.Jun 26 2024, 2:22 AM

configure user credentials as json object variable instead of individual string variables