Cloudwatch Event ECS payload?

0

I see that I can run ECS tasks in response to Cloudwatch Events, such as a PutObject event in an S3 bucket. Like this:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatch-Events-tutorial-ECS.html

My use case is that I'd like to run an ECS task in response to S3 PutObject events, so that a container can do some work on an object whenever that objects gets uploaded to S3.

Does Cloudwatch Events send the event payload to ECS, the same way it sends event payloads to Lambda? If so, how is the event payload exposed to an ECS task? If possible I'd like my ECS task to be able to parse the event payload, inside the container of the ECS task, to determine the S3 object key which triggered the event which started the task.

已提問 5 年前檢視次數 517 次
1 個回答
0

https://medium.com/@bowbaq/trigger-an-ecs-job-when-an-s3-upload-completes-3559c44c37d1

I think the above will unblock me.

Edited by: jrobison-sb on Apr 15, 2019 11:02 AM

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南