
Description
Route S3 Uploads to Lambda or Fargate is an agent skill that deploys an event-driven workflow on AWS. When a file lands in an S3 bucket, EventBridge starts a Step Functions state machine. The state machine checks the file size with a Choice state and sends the work to a Lambda function for files of 6 MB or less, or to an ECS Fargate task for files larger than 6 MB. The skill deploys the pieces with the AWS CLI. The architecture it sets up includes an S3 bucket with EventBridge notifications turned on, an EventBridge rule that fires on object creation, the Step Functions state machine, the Lambda function for small files, the Fargate task for large ones, a VPC with two subnets, an internet gateway and a security group, and an ECR repository for the Fargate container image. It also creates IAM roles for Lambda, Step Functions and the ECS task, each scoped to what that component needs. It is for developers whose uploads vary a lot in size and who want each file handled by the right compute service without a manual split. The skill is published in the AWS agent toolkit repository on GitHub.…
Highlights
- S3 upload trigger through EventBridge
- Size-based routing: Lambda up to 6 MB, Fargate above
- VPC, ECR and Fargate setup for large files
- Scoped IAM roles for each component
Ratings & Reviews
No ratings yet
Be the first to rate processing-s3-uploads-with-step-functions.
People also visit

aws-serverless
Routes serverless requests to a compute form factor and the skill that owns it

aws-lambda-managed-instances
Evaluates, configures, and migrates workloads to AWS Lambda Managed Instances

aws-lambda-python-integration
Provides AWS Lambda integration patterns for Python with cold start optimization

troubleshooting-s3-files
Diagnoses and resolves Amazon S3 Files issues including mount failures

aws-serverless
Specialized skill for building production-ready serverless applications on AWS
processing-s3-uploads-with-step-functions FAQ
How does the routing work?
A Choice state in the Step Functions state machine sends files of 6 MB or less to Lambda, and files larger than 6 MB to a Fargate task.
What does the skill deploy?
An S3 bucket with notifications, an EventBridge rule, the state machine, a Lambda function, a Fargate task, a VPC with two subnets, an ECR repository and scoped IAM roles.
How do I install it?
Run npx skills add https://github.com/aws/agent-toolkit-for-aws --skill processing-s3-uploads-with-step-functions in your project.
Is it free and open source?
The skill is published in the public aws/agent-toolkit-for-aws repository on GitHub. The page gives no price for the AWS resources it creates.
What do the security audits say?
skills.sh lists Gen Agent Trust Hub: Pass, Socket: Pass and Snyk: Warn for this skill.
What are the best processing-s3-uploads-with-step-functions alternatives?
Popular alternatives to processing-s3-uploads-with-step-functions include aws-lambda-durable-functions, aws-serverless and aws-lambda-managed-instances. See all processing-s3-uploads-with-step-functions alternatives


