Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3480473
D12930.id42923.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12930.id42923.diff
View Options
diff --git a/services/terraform/remote/service_landing.tf b/services/terraform/remote/service_landing.tf
new file mode 100644
--- /dev/null
+++ b/services/terraform/remote/service_landing.tf
@@ -0,0 +1,35 @@
+locals {
+ landing_container_name = "landing"
+
+ landing_run_server_config = jsonencode({
+ runKeyserver = false
+ runWebApp = false
+ runLanding = true
+ })
+
+ landing_environment_vars = merge(data.dotenv.local.entries,
+ {
+ "COMM_NODE_ROLE" = "landing",
+ "COMM_JSONCONFIG_facts_run_server_config" = local.landing_run_server_config
+ })
+}
+
+module "landing_service" {
+ source = "../modules/node_service"
+
+ container_name = "landing"
+ image = local.keyserver_service_image
+ service_name = "landing"
+ cluster_id = aws_ecs_cluster.comm_services.id
+ domain_name = local.is_staging ? "comm.engineer" : "comm.app"
+ vpc_id = aws_vpc.default.id
+ vpc_subnets = [aws_subnet.public_a.id, aws_subnet.public_b.id]
+ region = "us-east-2"
+ environment_vars = local.landing_environment_vars
+ ecs_task_role_arn = aws_iam_role.ecs_task_role.arn
+ ecs_task_execution_role_arn = aws_iam_role.ecs_task_execution.arn
+}
+
+output "landing_service_load_balancer_dns_name" {
+ value = module.landing_service.service_load_balancer_dns_name
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 17, 10:09 PM (1 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2671462
Default Alt Text
D12930.id42923.diff (1 KB)
Attached To
Mode
D12930: [terraform] deploy landing on comm services cluster
Attached
Detach File
Event Timeline
Log In to Comment