Deploy an event-driven workflow that routes S3 uploads to either Lambda or Fargate via Step Functions based on file size. Uses EventBridge to trigger a Step Functions state machine when objects are uploaded to S3. Small files are processed by Lambda, large files by a Fargate task. Includes VPC, ECR repository, ECS cluster, and scoped IAM roles.
Install
npx skills add aws/agent-toolkit-for-aws --skill processing-s3-uploads-with-step-functionsnpx skills add aws/agent-toolkit-for-aws --skill processing-s3-uploads-with-step-functions -a claude-code -gnpx skills add aws/agent-toolkit-for-aws --skill processing-s3-uploads-with-step-functions -a codex -ggemini skills install https://github.com/aws/agent-toolkit-for-aws.git --path skills/specialized-skills/serverless-skills/processing-s3-uploads-with-step-functionsgh skill install aws/agent-toolkit-for-aws processing-s3-uploads-with-step-functionsgit clone --depth 1 https://github.com/aws/agent-toolkit-for-aws /tmp/aws__agent-toolkit-for-aws
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/aws__agent-toolkit-for-aws/skills/specialized-skills/serverless-skills/processing-s3-uploads-with-step-functions ~/.claude/skills/processing-s3-uploads-with-step-functions # Claude Code
cp -R /tmp/aws__agent-toolkit-for-aws/skills/specialized-skills/serverless-skills/processing-s3-uploads-with-step-functions ~/.agents/skills/processing-s3-uploads-with-step-functions # Codex, Cursor, Gemini CLI, Copilot, OpenCode