What problem does it solve?
Processing S3 uploads often requires different compute depending on file size: small files fit Lambda's limits while large files need containerized Fargate tasks. Manually wiring S3, EventBridge, Step Functions, Lambda, ECS, ECR, VPC networking, and scoped IAM roles is error-prone and time-consuming.
Core Features & Use Cases
- Event-driven routing: EventBridge triggers a Step Functions state machine on S3 object creation, and a Choice state routes files ≤ 6 MB to Lambda and larger files to a Fargate task.
- Complete infrastructure provisioning: Creates the S3 bucket with encryption, ECR repository, ECS cluster and task definition, VPC security group with scoped egress, CloudWatch log group with KMS encryption, and least-privilege IAM roles.
- Built-in observability: Configures an SQS dead-letter queue for failed EventBridge invocations and a CloudWatch alarm on Step Functions execution failures.
- Use Case: A data engineering team receives mixed-size file uploads from partners and needs small CSVs processed instantly in Lambda while multi-gigabyte archives run as Fargate containers, all orchestrated automatically.
Quick Start
Ask the agent to deploy the S3 upload processing workflow with Step Functions, providing a bucket name, AWS region, ECR repository name, and state machine name.