https://github.com/toricls/aws-fargate-with-step-functions
Patterns for running Amazon ECS/AWS Fargate tasks resiliently with AWS Step Functions
https://github.com/toricls/aws-fargate-with-step-functions
aws containers ecs fargate step-functions
Last synced: 6 months ago
JSON representation
Patterns for running Amazon ECS/AWS Fargate tasks resiliently with AWS Step Functions
- Host: GitHub
- URL: https://github.com/toricls/aws-fargate-with-step-functions
- Owner: toricls
- License: mit
- Created: 2020-11-03T14:06:00.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T13:47:49.000Z (over 2 years ago)
- Last Synced: 2025-03-24T05:35:15.458Z (7 months ago)
- Topics: aws, containers, ecs, fargate, step-functions
- Homepage:
- Size: 628 KB
- Stars: 20
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Fargate with Step Functions
Patterns for resilient AWS Fargate task execution with AWS Step Functions.
## 1. Resilient Scheduled Fargate Tasks
This example shows you how to make scheduled Fargate tasks resilient by using the Step Functions' "Retry" feature.
[](./1-resilient-scheduled-fargate-tasks)
## 2. Parallerized Fargate Tasks
This example shows you how to run parameterized and parallerized Fargate tasks by using the Step Functions' "Map" state.
[](./2-parallelized-fargate-tasks)
## 3. Granular Error Handling based on Fargate Task's "stoppedReason"s
This example shows you how to handle errors based on the "[stoppedReason](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/stopped-task-errors.html)" field of ECS task result.
You can do "Retry when the error is `ResourceInitializationError`, but do not retry and just fail when the error is `CannotPullContainerError`", for example. See the full list of the error codes in the [Amazon ECS documentation](https://docs.aws.amazon.com/AmazonECS/latest/userguide/stopped-task-error-codes.html).
[](./3-stoppedreason-based-error-handling)
## Contribution
1. Fork ([https://github.com/toricls/aws-fargate-with-step-functions/fork](https://github.com/toricls/aws-fargate-with-step-functions/fork))
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the main branch
1. Create a new Pull Request## Licence
[MIT](LICENSE)
## Author
[Tori Hara](https://github.com/toricls)