We'll need storage for our static files (HTML
, CSS
, images etc). Let's use Amazon S3 for that.
We'll create a new aws
bucket to store our data!
Run:
npm install --save @aws-cdk/aws-s3
Import it into our stack document:
import * as s3 from "@aws-cdk/aws-s3";
Let's create a new bucket for storing a logo:
const logoBucket = new s3.Bucket(this, "LogoBucket", {
// we will fill this out later
});
Run:
cdk diff
andcdk deploy
.
You can find the bucket under aws
resources (search for s3
).