- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch7/synthetics --path cncb-synthetics
- Navigate to the cncb-synthetics directory cd cncb-synthetics.
- Install the dependencies with npm install.
- Review the file named src/App.js and update the clientId and domain fields with the values for the user pool stack.
- Build the app with npm run build.
- Deploy the stack:
Deploying a CloudFront distribution can take upward of 20 minutes.
$ npm run dp:lcl -- -s $MY_STAGE> cncb-synthetics@1.0.0 dp:lcl <path-to-your-workspace>/cncb-synthetics> sls deploy -r us-east-1 --account cncb "-s" "john"...WebsiteDistributionURL: https://dqvo8ga8z7ao3.cloudfront.net ...