docs/ecs-task-notification.md in hako-2.3.0 vs docs/ecs-task-notification.md in hako-2.3.1
- old
+ new
@@ -11,14 +11,17 @@
Amazon S3 is a good storage for polling, so connecting CloudWatch Events to AWS Lambda and put the payload to S3 is more scalable than ecs:DescribeTasks.
The example implementation of AWS Lambda can be found in [../examples/put-ecs-container-status-to-s3](../examples/put-ecs-container-status-to-s3) directory.
-To enable task notification with S3, you have to configure scheduler in YAML.
+To enable task notification with S3, you have to configure scheduler in definition file.
-```yaml
-scheduler:
- type: ecs
- oneshot_notification_prefix: 's3://ecs-task-notifications/task_statuses?region=ap-northeast-1'
+```js
+{
+ scheduler: {
+ type: 'ecs',
+ oneshot_notification_prefix: 's3://ecs-task-notifications/task_statuses?region=ap-northeast-1',
+ },
+}
```
It uses ecs-task-notifications bucket in ap-northeast-1 region.