Fireship · @fireship
SST in 100 seconds
Uploaded June 20, 2023 · Length 2:25
Summary
SST is an open-source tool that simplifies building full-stack web applications with AWS using TypeScript code.
- aws
- sst
- typescript
- full-stack
- serverless
- aws-lambda
- api-gateway
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
SST an open source tool that actually
- 0:02
makes it fun to build full stack web
- 0:04
applications with AWS the problem with
- 0:07
Amazon web services is that it has too
- 0:09
many web services and putting them all
- 0:11
together in a unified package can be
- 0:13
extremely complicated SST fixes this for
- 0:15
web developers by representing back-end
- 0:17
infrastructure as code typescript code
- 0:19
making it possible to integrate features
- 0:21
like S3 storage buckets Lambda functions
- 0:24
with API Gateway databases like RDS and
- 0:26
dynamodb Cognito user authentication
- 0:28
along with many other features without
- 0:30
ever touching the AWS console and it has
- 0:33
built-in deployment support for
- 0:34
Frameworks like nexjs Astro and spell
- 0:37
kit once initialized it provides a
- 0:39
variety of simple constructs that
- 0:40
represent infrastructure declaratively
- 0:42
under the hood this code is based on
- 0:44
Amazon's Cloud development kit and cloud
- 0:46
formation these constructs are grouped
- 0:48
together in Stacks which can be deployed
- 0:50
together or run locally with the SST Dev
- 0:52
command it provides a local development
- 0:54
environment with live reloading and
- 0:55
provides a web-based console to
- 0:57
managerstack minus the typical AWS pain
- 0:59
point to get started you'll need the AWS
- 1:01
CLI with credentials set up locally next
- 1:04
run the npx create SST command to drop
- 1:07
in a deployment solution to your
- 1:08
favorite framework or initialize it as a
- 1:10
standalone project this will scaffold a
- 1:12
mono repo and the packages directory is
- 1:14
where you write the code to power the
- 1:16
back end inside here we can write
- 1:17
serverless functions in typescript that
- 1:19
are powered by AWS Lambda and use API
- 1:22
Gateway as the front door to see it in
- 1:24
action run the dev command and that will
- 1:25
automatically deploy the required
- 1:27
resources to the cloud as we can see
- 1:28
here on the AWS console what's really
- 1:30
cool though is that we now have a local
- 1:32
development environment and if we go and
- 1:34
change the code in the function it's
- 1:35
immediately reflected in the cloud in
- 1:37
addition it spins up the local SST
- 1:39
console where you can view logs and
- 1:41
manager Stacks a stack is where you
- 1:43
define your infrastructure as code in
- 1:45
the stacks directory we have an API that
- 1:47
can map URLs to Lambda functions pretty
- 1:49
simple but we can expand on this by
- 1:51
adding an event bus which is able to
- 1:53
trigger Lambda functions based on
- 1:54
different events that happen in the
- 1:55
background like when a new database
- 1:57
record is Created from there we can
- 1:58
enable file uploads by adding the bucket


