- AWS programmatic credentials with necessary permissions to do this deployment
- A registered domain on Route53
- Web asset folder
-
make sure you have the latest version of the CDK CLI installed.
-
make sure your AWK CLI credentials && profile are setup.
nano ~/.aws/credentials [default] aws_access_key_id = ############ aws_secret_access_key = ############
nano ~/.aws/config [default] region = <your region> output = json
-
install dependancies with npm
npm install
import { MyConstruct } from "@elevator-robot/blip";
import * as cdk from "aws-cdk-lib";
const app = new cdk.App();
const stack = new MyConstruct(app, "MyConstruct", {
domainName: "example.com",
webAssetPath: "path-to-build-artifacts",
});