From f6bfeeffac4f039bfc0b9e386f834d3061d7959b Mon Sep 17 00:00:00 2001 From: seaerchin Date: Thu, 15 Aug 2024 13:11:26 +0800 Subject: [PATCH] chore: deploy update name + delete old file --- .aws/deploy/task-definition.json | 6 +- apps/studio/deploy/task-definition.json | 118 ------------------------ 2 files changed, 1 insertion(+), 123 deletions(-) delete mode 100644 apps/studio/deploy/task-definition.json diff --git a/.aws/deploy/task-definition.json b/.aws/deploy/task-definition.json index 24e86499e9..626f8304f4 100644 --- a/.aws/deploy/task-definition.json +++ b/.aws/deploy/task-definition.json @@ -1,7 +1,7 @@ { "containerDefinitions": [ { - "name": "backend", + "name": "studio", "portMappings": [ { "containerPort": 3000, @@ -26,10 +26,6 @@ }, "volumesFrom": [], "secrets": [ - { - "name": "CLOUDMERSIVE_API_KEY", - "valueFrom": "STAGING_CLOUDMERSIVE_API_KEY" - }, { "name": "NEXT_PUBLIC_ENABLE_STORAGE", "valueFrom": "NEXT_PUBLIC_ENABLE_STORAGE" diff --git a/apps/studio/deploy/task-definition.json b/apps/studio/deploy/task-definition.json deleted file mode 100644 index 21d15858b3..0000000000 --- a/apps/studio/deploy/task-definition.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "containerDefinitions": [ - { - "name": "app-server", - "portMappings": [ - { - "containerPort": 8080, - "hostPort": 8080, - "protocol": "tcp" - } - ], - "essential": true, - "environment": [ - { - "name": "NODE_ENV", - "value": "production" - } - ], - "mountPoints": [], - "volumesFrom": [], - "secrets": [ - { - "name": "DATABASE_URL", - "valueFrom": "//DATABASE_URL" - } - ], - "logConfiguration": { - "logDriver": "awslogs", - "options": { - "awslogs-group": "isomer/ecs/app-server", - "awslogs-region": "ap-southeast-1", - "awslogs-stream-prefix": "ecs" - } - } - }, - { - "name": "dd-agent", - "image": "public.ecr.aws/datadog/agent:latest", - "portMappings": [ - { - "containerPort": 8126, - "hostPort": 8126, - "protocol": "tcp" - }, - { - "containerPort": 8125, - "hostPort": 8125, - "protocol": "udp" - } - ], - "essential": true, - "environment": [ - { - "name": "TZ", - "value": "Asia/Singapore" - }, - { - "name": "DD_APM_NON_LOCAL_TRAFFIC", - "value": "true" - }, - { - "name": "DD_DOGSTATSD_NON_LOCAL_TRAFFIC", - "value": "true" - }, - { - "name": "ECS_FARGATE", - "value": "true" - }, - { - "name": "DD_APM_ENABLED", - "value": "true" - }, - { - "name": "DD_SITE", - "value": "datadoghq.com" - } - ], - "mountPoints": [], - "volumesFrom": [], - "secrets": [ - { - "name": "DD_API_KEY", - "valueFrom": "//DD_API_KEY" - }, - { - "name": "DD_SERVICE", - "valueFrom": "//DD_SERVICE" - }, - { - "name": "DD_TAGS", - "valueFrom": "//DD_TAGS" - } - ], - "logConfiguration": { - "logDriver": "awslogs", - "options": { - "awslogs-group": "isomer/ecs/app-server-dd-agent", - "awslogs-region": "ap-southeast-1", - "awslogs-stream-prefix": "ecs" - } - } - } - ], - "family": "isomer", - "networkMode": "awsvpc", - "volumes": [], - "placementConstraints": [], - "runtimePlatform": { - "operatingSystemFamily": "LINUX" - }, - "requiresCompatibilities": [ - "FARGATE" - ], - "taskRoleArn": "arn:aws:iam:::role/isomer-next-infra-ecs-task-role", - "executionRoleArn": "arn:aws:iam:::role/isomer-next-infra-ecs-task-exec-role", - "cpu": "", - "memory": "" -}