Skip to content

Commit

Permalink
publishing file
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisms authored Oct 22, 2024
1 parent 60acace commit 98d1b66
Showing 1 changed file with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions s3-eventbridge-fargate-cdk/s3-eventbirdge-fargate-cdk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"title": "Amazon S3 to AWS Fargate",
"description": "Start an AWS Fargate Task when a file is uploaded to S3",
"language": "TypeScript",
"level": "200",
"framework": "CDK",
"introBox": {
"headline": "How it works",
"text": [
"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."
]
},
"gitHub": {
"template": {
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/s3-eventbridge-fargate-cdk",
"templateURL": "serverless-patterns/s3-eventbridge-fargate-cdk/src",
"projectFolder": "s3-eventbridge-fargate-cdk",
"templateFile": "src/s3-trigger-fargate-task-stack.ts"
}
},
"resources": {
"bullets": [
{
"text": "Using EventBridge to handle S3 events",
"link": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventBridge.html"
},
{
"text": "ECS Task as a target for EventBridge",
"link": "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html#targets-specifics-ecs-task"
}
]
},
"deploy": {
"text": [
"npm install && cdk deploy"
]
},
"testing": {
"text": [
"See the GitHub repo for detailed testing instructions."
]
},
"cleanup": {
"text": [
"Delete the stack: <code>cdk destroy</code>."
]
},
"authors": [
{
"name": "Jerome Van Der Linden",
"image": "https://serverlessland.com/assets/images/resources/contributors/jerome-van-der-linden.jpg",
"bio": "Jerome is a Solutions Architect Builder at AWS. Passionate about building stuff using the AWS services, and especially the serverless ones.",
"linkedin": "jeromevdl",
"twitter": "jeromevdl"
}
],
"patternArch": {
"icon1": {
"x": 20,
"y": 50,
"service": "s3",
"label": "Amazon S3"
},
"icon2": {
"x": 50,
"y": 50,
"service": "eventbridge",
"label": "Amazon EventBridge"
},
"icon3": {
"x": 80,
"y": 50,
"service": "fargate",
"label": "AWS Fargate"
},
"line1": {
"from": "icon1",
"to": "icon2",
"label": "Event"
},
"line2": {
"from": "icon2",
"to": "icon3",
"label": "Rule"
}
}
}

0 comments on commit 98d1b66

Please sign in to comment.