-
Notifications
You must be signed in to change notification settings - Fork 2
/
example-task-def.yaml
38 lines (36 loc) · 1.03 KB
/
example-task-def.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# generic template for creating a task definition for a service
---
AWSTemplateFormatVersion: '2010-09-09'
Resources:
TaskDefinition:
Type: AWS::ECS::TaskDefinition
Properties:
RequiresCompatibilities:
- FARGATE
ContainerDefinitions:
- name: your-app
image: your-image
essential: true
environment:
- Name: "LaceworkAccessToken"
Value: "......"
- Name: "LaceworkRunAsEntrypoint"
Value: "true"
entryPoint:
- sh
- -x
- /shared/lacework.sh
command:
- "nginx"
- "-g"
- "daemon off;"
volumesFrom:
- sourceContainer: datacollector-sidecar
readOnly: true
dependsOn:
- containerName: datacollector-sidecar
condition: SUCCESS
# Adding Lacework datacollector
- name: datacollector-sidecar
image: jdvogt/lacework-minimal-sidecar
essential: false