Seed supports deploying AWS CDK apps with SST. SST or Serverless Stack Toolkit makes it possible to deploy CDK apps alongside your Serverless Framework services. It allows you to deploy your CDK app to multiple stages, region, or AWS accounts. Just like you would for your Serverless services.
Aside from allowing you to use CDK alongside your Serverless Framework services, SST has a couple of other key advantages. SST on Seed is:
The fastest way to deploy CDK apps
SST supports concurrently deploying all the stacks in your CDK apps. SST is also natively supported in Seed and features a custom deployment infrastructure that’s specifically optimized for it. Making Seed the fastest way to deploy your CDK apps
Seed directly plugs into the SST deployment process. So when a CDK app is waiting for CloudFormation to update your stacks, Seed pauses the build process and does this asynchronously. This allows Seed to make CDK deployments very efficient and offer it to you for free!
You can read more about this in our post here. Note that, there are a couple of pricing limits that we talk about below.
CDK deployments on Seed are free!
Let’s look at how to add a new SST app to Seed.
While adding a new app, pick the repo with your SST app in it.
And Seed will look for any
sst.json files in your repo.
Pick the SST app you want to add. If you’ve got multiple SST apps or Serverless services, you can add them later.
Next, you’ll be asked to add the IAM credentials for your dev and prod environments.
CDK apps deployed using SST on Seed are free. There are a couple of small limitations to this:
- If you are running additional scripts as a part of your build spec, you’ll be billed for the build minutes it takes to run those scripts.
- Seed installs your npm packages as a part of the build process. If this step takes longer than 180s, you’ll be billed for it. For example, if it takes 282s, you’ll be billed for 282 - 180 = 102s.