We’ll be storing the files that’s uploaded by our users to an S3 bucket. The template we are using comes with a bucket that we renamed back in the Create a Hello World API.

Recall the following from infra/storage.ts.

// Create an S3 bucket
export const bucket = new sst.aws.Bucket("Uploads");

Here we are creating a new S3 bucket using the SST Bucket component.

Commit the Changes

Change indicator Let’s commit and push our changes to GitHub.

$ git add .
$ git commit -m "Adding storage"
$ git push

Next, let’s create the API for our notes app.