Created
January 20, 2022 17:38
-
-
Save danifitz/38026c1b807a772fe5ed3b59735b293b to your computer and use it in GitHub Desktop.
example task definition with lacework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ipcMode": null, | |
"executionRoleArn": "arn:aws:iam::009213923942:role/ecsTaskExecutionRole", | |
"containerDefinitions": [ | |
{ | |
"dnsSearchDomains": null, | |
"environmentFiles": null, | |
"logConfiguration": { | |
"logDriver": "awslogs", | |
"secretOptions": null, | |
"options": { | |
"awslogs-group": "/ecs/lacework-example", | |
"awslogs-region": "eu-west-2", | |
"awslogs-stream-prefix": "ecs" | |
} | |
}, | |
"entryPoint": [ | |
"/bin/sh", | |
"-c" | |
], | |
"portMappings": [], | |
"command": [ | |
"/var/lib/lacework-backup/lacework-sidecar.sh && /docker-entrypoint.sh" | |
], | |
"linuxParameters": null, | |
"cpu": 0, | |
"environment": [ | |
{ | |
"name": "LaceworkAccessToken", | |
"value": "YOUR_ACCESS_TOKEN" | |
} | |
], | |
"resourceRequirements": null, | |
"ulimits": null, | |
"dnsServers": null, | |
"mountPoints": [], | |
"workingDirectory": null, | |
"secrets": null, | |
"dockerSecurityOptions": null, | |
"memory": null, | |
"memoryReservation": null, | |
"volumesFrom": [ | |
{ | |
"sourceContainer": "datacollector-sidecar", | |
"readOnly": null | |
} | |
], | |
"stopTimeout": null, | |
"image": "danfitzgerald/wikimedia-pull:1", | |
"startTimeout": null, | |
"firelensConfiguration": null, | |
"dependsOn": [ | |
{ | |
"containerName": "datacollector-sidecar", | |
"condition": "SUCCESS" | |
} | |
], | |
"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": "app" | |
}, | |
{ | |
"dnsSearchDomains": null, | |
"environmentFiles": null, | |
"logConfiguration": { | |
"logDriver": "awslogs", | |
"secretOptions": null, | |
"options": { | |
"awslogs-group": "/ecs/lacework-example", | |
"awslogs-region": "eu-west-2", | |
"awslogs-stream-prefix": "ecs" | |
} | |
}, | |
"entryPoint": null, | |
"portMappings": [], | |
"command": null, | |
"linuxParameters": null, | |
"cpu": 0, | |
"environment": [], | |
"resourceRequirements": null, | |
"ulimits": null, | |
"dnsServers": null, | |
"mountPoints": [], | |
"workingDirectory": null, | |
"secrets": null, | |
"dockerSecurityOptions": null, | |
"memory": null, | |
"memoryReservation": null, | |
"volumesFrom": [], | |
"stopTimeout": null, | |
"image": "lacework/datacollector:latest-sidecar", | |
"startTimeout": null, | |
"firelensConfiguration": null, | |
"dependsOn": null, | |
"disableNetworking": null, | |
"interactive": null, | |
"healthCheck": null, | |
"essential": false, | |
"links": null, | |
"hostname": null, | |
"extraHosts": null, | |
"pseudoTerminal": null, | |
"user": null, | |
"readonlyRootFilesystem": null, | |
"dockerLabels": null, | |
"systemControls": null, | |
"privileged": null, | |
"name": "datacollector-sidecar" | |
} | |
], | |
"placementConstraints": [], | |
"memory": "512", | |
"taskRoleArn": null, | |
"compatibilities": [ | |
"EC2", | |
"FARGATE" | |
], | |
"taskDefinitionArn": "arn:aws:ecs:eu-west-2:009213923942:task-definition/lacework-example:3", | |
"family": "lacework-example", | |
"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": "com.amazonaws.ecs.capability.docker-remote-api.1.19" | |
}, | |
{ | |
"targetId": null, | |
"targetType": null, | |
"value": null, | |
"name": "ecs.capability.container-ordering" | |
}, | |
{ | |
"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", | |
"runtimePlatform": null, | |
"cpu": "256", | |
"revision": 3, | |
"status": "ACTIVE", | |
"inferenceAccelerators": null, | |
"proxyConfiguration": null, | |
"volumes": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment