From 1a598e142ff3133408a03a6fb44010947cb1b54e Mon Sep 17 00:00:00 2001 From: DeepakNemad Date: Thu, 7 Dec 2023 16:25:24 +0530 Subject: [PATCH] setup shared volume access (EFS) to AFJ-change in agent spinup script Signed-off-by: DeepakNemad --- .../AFJ/scripts/start_agent_ecs.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh b/apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh index 2c1c1879a..72f63635b 100644 --- a/apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh +++ b/apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh @@ -157,9 +157,9 @@ CONTAINER_DEFINITIONS=$( ], "mountPoints": [ { - "sourceVolume": "config", - "containerPath": "/config.json", - "readOnly": true + "sourceVolume": "agent-configf-file", + "containerPath": "/app/agent-provisioning/AFJ/agent-config", + "readOnly": false } ], "volumesFrom": [], @@ -178,12 +178,13 @@ TASK_DEFINITION=$( "executionRoleArn": "arn:aws:iam::${AWS_ACCOUNT_ID}:role/ecsTaskExecutionRole", "volumes": [ { - "name": "config", - "host": { - "sourcePath": "/home/ec2-user/config/${AGENCY}_${CONTAINER_NAME}.json" + "name": "agent-configf-file", + "efsVolumeConfiguration": { + "fileSystemId": "fs-0e9c347f845165eed", + "rootDirectory": "/" } } - ], + ] "networkMode": "host", "requiresCompatibilities": [ "EC2"