Skip to content

Commit

Permalink
setup shared volume access (EFS) to AFJ-change in agent spinup script
Browse files Browse the repository at this point in the history
Signed-off-by: DeepakNemad <[email protected]>
  • Loading branch information
DeepakNemad committed Dec 7, 2023
1 parent 170a2fe commit 1a598e1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand All @@ -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"
Expand Down

0 comments on commit 1a598e1

Please sign in to comment.