Amazon S3 to AWS Fargate

Amazon S3 → Amazon EventBridge → AWS Fargate

Start an AWS Fargate Task when a file is uploaded to S3

This pattern demonstrates how to start an AWS Fargate task when an object is uploaded to Amazon S3.
This pattern is commonly implemented with an AWS Lambda function, but this is not always possible:
- Processing > 15 min
- Docker image > 10G
- GPU required
Thanks to Amazon EventBridge, S3 events can start an ECS/Fargate task.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/s3-eventbridge-fargate-cdk/src

Deploy

npm install && cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Jerome Van Der Linden

Jerome Van Der Linden

Jerome is a Solutions Architect Builder at AWS. Passionate about building stuff using the AWS services, and especially the serverless ones.

Follow on LinkedIn