You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fargate-eventbridge-serverless/README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Leveraging Fargate for Scheduled Jobs
2
2
3
-
This pattern contains a sample serverless framework 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 serverless framework 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 using Eventbridge Scheduler and a simple file containing JSON is put in S3 bucket.
3
+
This pattern contains a sample serverless framework 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 serverless framework 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 using Eventbridge Rule and a simple file containing JSON is put in S3 bucket.
4
4
5
5
Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the [AWS Pricing page](https://aws.amazon.com/pricing/) for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.
6
6
@@ -29,6 +29,13 @@ Important: this application uses various AWS services and there are costs associ
29
29
30
30
1. Open Docker Desktop and keep it running in the background.
31
31
32
+
1. Install serverless-fargate plugin in dev dependencies:
33
+
```
34
+
// using yarn
35
+
yarn add serverless-fargate --dev
36
+
// using npm
37
+
npm install serverless-fargate --save-dev
38
+
```
32
39
1. From the command line, use Serverless Framework to deploy the AWS resources forthe pattern as specifiedin the serverless.yml file:
0 commit comments