Skip to content
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

feat: omg! add queue processing fargate service #2

Merged
merged 3 commits into from
Jul 7, 2022

Conversation

olizilla
Copy link
Owner

@olizilla olizilla commented Jun 30, 2022

adds the pickup worker stack that creates a queue-processing-fargate-service.

The idea is to recreate the gist of what the aws-copilot cli would have created for a "worker service" pattern, but in aws-cdk code so it can be deployed with SST and we can share constructs between the lambda + dynamo api and the pickup+ipfs workers.

This PR includes a fork of the aws-ecs-patterns QueueProcessingFargateService so we can request ephemeralStorage to be added to Fargate tasks... CDK supports it on a FargateService but it's not bubbled up as a config option to the QueueProcessingFargateService... so we add it. There is a stalled PR to do much the same thing here aws/aws-cdk#18106

License: (Apache-2.0 AND MIT)
Signed-off-by: Oli Evans oli@tableflip.io

adds the pickup worker stack that creates a queue-processing-fargate-service.

The idea is to recreate the gist of what the aws-copilot cli would have created for a "worker service" pattern, but in aws-cdk code so it can be deployed with SST and we can share constructs between the lambda + dynamo api and the pickup+ipfs workers.

- https://github.com/ipfs-shipyard/go-ipfs-docker-examples/blob/main/gateway-copilot-backend-service/copilot/gw/manifest.yml
- web3-storage/pickup#1
- https://docs.aws.amazon.com/cdk/v2/guide/ecs_example.html
- https://github.com/aws/aws-cdk/blob/main/packages/@aws-cdk/aws-ecs-patterns/lib/fargate/queue-processing-fargate-service.ts

License: (Apache-2.0 AND MIT)
Signed-off-by: Oli Evans <oli@tableflip.io>
License: (Apache-2.0 AND MIT)
Signed-off-by: Oli Evans <oli@tableflip.io>
@olizilla olizilla marked this pull request as ready for review July 6, 2022 10:59
License: (Apache-2.0 AND MIT)
Signed-off-by: Oli Evans <oli@tableflip.io>
@olizilla olizilla merged commit 24703c7 into main Jul 7, 2022
@olizilla olizilla deleted the pickup-worker-stack branch July 7, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant