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년 전513회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠