Skip to content

Commit 8113c92

Browse files
author
Buddhi Dhananjaya
committed
fix(docs) update ECS task definition names and add sample task definition for cuemeet meeting bot
1 parent 3d96dd4 commit 8113c92

File tree

1 file changed

+107
-2
lines changed

1 file changed

+107
-2
lines changed

docs/aws-setup.md

Lines changed: 107 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,126 @@ Modify the following variables to match your setup:
6565
### 6 Create Amazon ECS Task Definition Using the AWS Management Console
6666
Follow these steps to create an ECS task definition:
6767

68-
1. **Task Definition Name:** Enter `cuecard-meeting-bot-google`.
68+
1. **Task Definition Name:** Enter `cuemeet-meeting-bot-google`.
6969
2. **Task Role:** Leave blank or select a suitable task role if your bot needs access to other AWS services.
7070
3. **Network Mode:** Select `awsvpc`.
7171
4. **Task Execution Role:** Create a new one with the necessary permissions.
7272
5. **Task Size:** Set the task size as needed.
7373
6. **Add Container:**
7474
- Click "Add container."
75-
- **Container Name:** Enter `cuecard-google-bot`.
75+
- **Container Name:** Enter `cuemeet-google-bot`.
7676
- **Image:** `<your_account_id>.dkr.ecr.<your_region>.amazonaws.com/<your_repository_name>:latest`
7777
- **Environment variables:**
7878
- Click "Add environment variable."
7979
- Add `ENVIRONMENT_NAME`
8080
- Add `DEBUG`
8181
- Add `HIGHLIGHT_PROJECT_ID`
8282

83+
### 6.1 Sample ECS Task Definition
84+
```bash
85+
{
86+
"taskDefinitionArn": "arn:aws:ecs:us-east-2:************:task-definition/cuemeet-meeting-bot-google-staging:**",
87+
"containerDefinitions": [
88+
{
89+
"name": "cuemeet-google-bot",
90+
"image": "************.dkr.ecr.us-east-2.amazonaws.com/cuemeet-google-bot:latest",
91+
"cpu": 0,
92+
"portMappings": [],
93+
"essential": true,
94+
"environment": [
95+
{
96+
"name": "ENVIRONMENT_NAME",
97+
"value": "DEV"
98+
},
99+
{
100+
"name": "DEBUG",
101+
"value": "False"
102+
},
103+
{
104+
"name": "HIGHLIGHT_PROJECT_ID",
105+
"value": "************"
106+
}
107+
],
108+
"environmentFiles": [],
109+
"mountPoints": [],
110+
"volumesFrom": [],
111+
"ulimits": [],
112+
"logConfiguration": {
113+
"logDriver": "awslogs",
114+
"options": {
115+
"awslogs-group": "/ecs/cuemeet-meeting-bot-google-staging",
116+
"mode": "non-blocking",
117+
"awslogs-create-group": "true",
118+
"max-buffer-size": "25m",
119+
"awslogs-region": "us-east-2",
120+
"awslogs-stream-prefix": "ecs"
121+
},
122+
"secretOptions": []
123+
},
124+
"systemControls": []
125+
}
126+
],
127+
"family": "cuemeet-meeting-bot-google-staging",
128+
"taskRoleArn": "arn:aws:iam::************:role/ecsTaskExecutionRole",
129+
"executionRoleArn": "arn:aws:iam::************:role/ecsTaskExecutionRole",
130+
"networkMode": "awsvpc",
131+
"revision": 11,
132+
"volumes": [],
133+
"status": "ACTIVE",
134+
"requiresAttributes": [
135+
{
136+
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs"
137+
},
138+
{
139+
"name": "ecs.capability.execution-role-awslogs"
140+
},
141+
{
142+
"name": "com.amazonaws.ecs.capability.ecr-auth"
143+
},
144+
{
145+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
146+
},
147+
{
148+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.28"
149+
},
150+
{
151+
"name": "com.amazonaws.ecs.capability.task-iam-role"
152+
},
153+
{
154+
"name": "ecs.capability.execution-role-ecr-pull"
155+
},
156+
{
157+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18"
158+
},
159+
{
160+
"name": "ecs.capability.task-eni"
161+
},
162+
{
163+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.29"
164+
}
165+
],
166+
"placementConstraints": [],
167+
"compatibilities": [
168+
"EC2",
169+
"FARGATE"
170+
],
171+
"requiresCompatibilities": [
172+
"FARGATE"
173+
],
174+
"cpu": "1024",
175+
"memory": "2048",
176+
"runtimePlatform": {
177+
"cpuArchitecture": "X86_64",
178+
"operatingSystemFamily": "LINUX"
179+
},
180+
"registeredAt": "",
181+
"enableFaultInjection": false,
182+
"tags": []
183+
}
184+
```
185+
Note: Each of the bot requires it's own task definition
186+
187+
83188
### 7 Deployment Process
84189
1. **Code Commit:** Commit your code changes to the source repository.
85190
2. **CodePipeline Trigger:** CodePipeline automatically triggers the build process.

0 commit comments

Comments
 (0)