From a350d2019fdf7d3236b00a21dbd9f4cabb1869f9 Mon Sep 17 00:00:00 2001 From: infra Date: Fri, 9 Aug 2024 12:59:07 -0700 Subject: [PATCH] feat: add ecs --- modules/langgraph_cloud/main.tf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/langgraph_cloud/main.tf b/modules/langgraph_cloud/main.tf index b50bce8..db35152 100644 --- a/modules/langgraph_cloud/main.tf +++ b/modules/langgraph_cloud/main.tf @@ -66,3 +66,21 @@ data "aws_iam_policy_document" "assume_role" { } } } + +resource "aws_cloudwatch_log_group" "langgraph_cloud_log_group" { + name = "/aws/ecs/langgraph-cloud" +} + +// Create an ECS cluster +resource "aws_ecs_cluster" "langgraph_cloud_cluster" { + name = "langgraph-cloud-cluster" + + configuration { + execute_command_configuration { + logging = "OVERRIDE" + log_configuration { + cloudwatch_log_group_arn = aws_cloudwatch_log_group.langgraph_cloud_log_group.arn + } + } + } +}