All skills
aws avatar

/processing-s3-uploads-with-step-functions

@9e9560f

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. Trigger keywords: Step Functions, Fargate, Lambda, S3 event, EventBridge, ECS, ECR, file processing, workflow orchestration, serverless.

Use this Skill: https://skilld.dev/gh/aws/agent-toolkit-for-aws/processing-s3-uploads-with-step-functions

This session only. Nothing lands on disk.

referencesecs-task-definition.md

≈315 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Step 8: Create the ECS Cluster and Task Definition

Constraints:

  • You MUST create the ECS cluster: aws ecs create-cluster --cluster-name sfn-cluster --capacity-providers FARGATE --region {region}

  • You MUST register the task definition with:

    aws ecs register-task-definition \
        --family StepFunctionFargateTask \
        --cpu 1024 \
        --memory 8192 \
        --network-mode awsvpc \
        --requires-compatibilities FARGATE \
        --execution-role-arn arn:aws:iam::{account_id}:role/sfn-ecs-execution-role \
        --task-role-arn arn:aws:iam::{account_id}:role/sfn-ecs-task-role \
        --runtime-platform cpuArchitecture=X86_64,operatingSystemFamily=LINUX \
        --container-definitions '[{
          "name": "StepFunctionFargateTask1",
          "image": "{account_id}.dkr.ecr.{region}.amazonaws.com/{ecr_repo_name}:latest",
          "cpu": 1024,
          "memory": 8192,
          "logConfiguration": {
            "logDriver": "awslogs",
            "options": {
              "awslogs-group": "/StepFunctionFargateTask",
              "awslogs-region": "{region}",
              "awslogs-stream-prefix": "containerlog"
            }
          }
        }]' \
        --region {region}
  • You MUST capture the task definition ARN from the response

Source: SKILL.md on GitHub

1 warning27d3 checks · Risk SAFE
  • Gen Agent Trust Hub27d

    This skill implements a secure, event-driven architecture for routing S3 uploads to Lambda or Fargate. It incorporates robust security practices, including scoped IAM roles, network egress controls for Fargate tasks, and data encryption using AWS KMS.

  • Socket27d

    No alerts

  • Snyk27d

    Risk: MEDIUM · 1 issue

Signed by skilld at 9e9560f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
version
1

README badge

README badge for aws/agent-toolkit-for-aws/processing-s3-uploads-with-step-functions