-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Serverless Pattern: fargate-eventbridge-serverless #1588
New Serverless Pattern: fargate-eventbridge-serverless #1588
Conversation
@@ -0,0 +1,82 @@ | |||
# Leveraging Fargate for Scheduled Jobs | |||
|
|||
This pattern contains a sample cloudformation template to deploy a scheduled AWS Fargate task using EventBridge running on an Amazon Elastic Container Service (ECS) cluster. The docker image is pushed to Amazon Elastic Container Registry (ECR) using cloudformation template without having to pre-push the image to ECR or another container library. The serverless framework plugin for fargate, `serverless-fargate` is used to deploy tasks on ECS Cluster. This task runs every 10th minute of the hour and a simple file containing JSON is put in S3 bucket. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CloudFormation.
I think it would be worth to mention that this is using serverless framework early on, as you are putting this as a CloudFormation template, and it is inside a SF one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you using EventBridge Scheduler for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review, this pattern is using Eventbridge Rule to schedule the task.
1. Change directory to the fargate-eventbridge pattern directory: | ||
|
||
``` sh | ||
cd serverless-patterns/fargate-eventbridge-serverless |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd fargate-ev....
|
||
1. Open Docker Desktop and keep it running in the background. | ||
|
||
1. From the command line, use Serverless Framework to deploy the AWS resources for the pattern as specified in the serverless.yml file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to install serverless-fargate before running this. Please add to the instructions
Please fix the above comments and I will come back to this pattern next week. |
Thanks for reviewing the pattern, I have updated the documentation according to your review. |
Thanks for submitting this pattern. Cheers |
Description of changes:
Creates a new serverless framework pattern to deploy a scheduled AWS Fargate task running on AWS ECS Cluster.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.