I use Serverless Framework with <https://seed.run>...
# help
s
I use Serverless Framework with https://seed.run every chance I get (haven’t tried SST yet), but sometimes using Docker is unavoidable. Is anyone aware of a tool that managed AWS ECS Fargate, similar to how sls manages Lambda? I want to avoid using Terraform if possible. In other words, solve for
AWS Lambda : Serverless Framework == AWS ECS :
t
Going to be hard to avoid an IaC tool to manage this. Can use CDK instead of Terraform which should have less overhead / setup
If you use SST you can use it to manage both your serverless stuff and your container stuff since all of CDK is accessible
s
I haven’t had the opportunity to dive into SST yet, but does it solve for problems like publishing Docker images during the CI/CD pipeline? Or maybe seed.run handles that?
t
SST is built on top of AWS CDK. We provide higher level abstractions for common serverless patterns. For everything we don't cover, you can use CDK directly. With cdk you can do what you're talking about with pushing to an image registry
I'd recommend maybe starting up an SST app and playing around
s
That is a fine recommendation, but I’d like to start differently. I googled things like “sst docker” or “sst ecs fargate” and I don’t see any patterns where people are using SST and ECS. I don’t wanna be alone 😢
t
You'd want to search
cdk ecs fargate
s
Yes, that was my next thing I was typing All the CDK ECS Fargate examples use CodeBuild+CodePipeline. I much prefer seed.run though, or a similarly purpose-built CI/CD service
t
You can do this in the cdk code with any ci tool
this will run in seed
s
That last link, that may be the missing link
I don’t fully understand yet, but I like what I am looking at
f
+1 with @thdxr
CDK supports packaging images and uploading to ECR without needing CodePipeline. I don’t have a code sample at the moment. But any CDK examples you find you can plug it indirectly in ur SST app
s
And I’d be able to get PR Deploys via seed.run? Of my ECS Fargate service?
Any blogs/write-ups on this? Seems huge
f
Yup. If u put this into ur SST app, you will be able to
sst deploy —-stage dev
or to
—-stage pr345
PR workflow should work out of the box
t
More broadly remember cdk is just running javascript. Which means you can make it do anything you dream of!
s
This… this is too good to be true