Despite, you have an EFS already handy, mounted to an EC2 or similar and created the toml file.
{
“ipcMode”: null,
“executionRoleArn”: “xxxxx”,
“containerDefinitions”: [
{
“dnsSearchDomains”: null,
“environmentFiles”: null,
“logConfiguration”: {
“logDriver”: “awslogs”,
“secretOptions”: null,
“options”: {
“awslogs-group”: “grafana”,
“awslogs-region”: “xxx”,
“awslogs-stream-prefix”: “grafana”
}
},
“entryPoint”: null,
“portMappings”: [
{
“hostPort”: 3000,
“protocol”: “tcp”,
“containerPort”: 3000
}
],
“command”: [
“df -h”
],
“linuxParameters”: null,
“cpu”: 0,
“environment”: ,
“resourceRequirements”: null,
“ulimits”: null,
“dnsServers”: null,
“mountPoints”: [
{
“readOnly”: true,
“containerPath”: “/mount/efs”,
“sourceVolume”: “efs”
}
],
“workingDirectory”: null,
“secrets”: null,
“dockerSecurityOptions”: null,
“memory”: null,
“memoryReservation”: null,
“volumesFrom”: ,
“stopTimeout”: null,
“image”: “xxx”,
“startTimeout”: null,
“firelensConfiguration”: null,
“dependsOn”: null,
“disableNetworking”: null,
“interactive”: null,
“healthCheck”: null,
“essential”: true,
“links”: null,
“hostname”: null,
“extraHosts”: null,
“pseudoTerminal”: null,
“user”: null,
“readonlyRootFilesystem”: null,
“dockerLabels”: null,
“systemControls”: null,
“privileged”: null,
“name”: “grafana”
}
],
“placementConstraints”: ,
“memory”: “2048”,
“taskRoleArn”: “xxxx”,
“compatibilities”: [
“EC2”,
“FARGATE”
],
“taskDefinitionArn”: “xxxx”,
“family”: “grafana_task_definition”,
“requiresAttributes”: [
{
“targetId”: null,
“targetType”: null,
“value”: null,
“name”: “com.amazonaws.ecs.capability.logging-driver.awslogs”
},
{
“targetId”: null,
“targetType”: null,
“value”: null,
“name”: “ecs.capability.execution-role-awslogs”
},
{
“targetId”: null,
“targetType”: null,
“value”: null,
“name”: “ecs.capability.efsAuth”
},
{
“targetId”: null,
“targetType”: null,
“value”: null,
“name”: “com.amazonaws.ecs.capability.docker-remote-api.1.19”
},
{
“targetId”: null,
“targetType”: null,
“value”: null,
“name”: “ecs.capability.efs”
},
{
“targetId”: null,
“targetType”: null,
“value”: null,
“name”: “com.amazonaws.ecs.capability.task-iam-role”
},
{
“targetId”: null,
“targetType”: null,
“value”: null,
“name”: “com.amazonaws.ecs.capability.docker-remote-api.1.25”
},
{
“targetId”: null,
“targetType”: null,
“value”: null,
“name”: “com.amazonaws.ecs.capability.docker-remote-api.1.18”
},
{
“targetId”: null,
“targetType”: null,
“value”: null,
“name”: “ecs.capability.task-eni”
}
],
“pidMode”: null,
“requiresCompatibilities”: [
“FARGATE”
],
“networkMode”: “awsvpc”,
“cpu”: “1024”,
“revision”: 38,
“status”: “ACTIVE”,
“inferenceAccelerators”: null,
“proxyConfiguration”: null,
“volumes”: [
{
“efsVolumeConfiguration”: {
“transitEncryptionPort”: null,
“fileSystemId”: “fs-xxxxxx”,
“authorizationConfig”: {
“iam”: “DISABLED”,
“accessPointId”: “fsap-xxxxxxxx”
},
“transitEncryption”: “ENABLED”,
“rootDirectory”: “/”
},
“name”: “efs”,
“host”: null,
“dockerVolumeConfiguration”: null
}
]
}
The File System IOD and access point ID you’d get from your EFS config.