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.

preguntada hace 5 años521 visualizaciones
1 Respuesta
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

respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas