For the purposes of this workshop, we will not be actively contributing to the curtin construct Libraries.
We will be using a training monorepo project to guide us through the process of creating a new construct.
Navigate in your WSL CLI to a directory you want to house this project locally.
For the purpose of this tutorial, we will assume you intending to make a directory on the root level of your wsl console.
cd ~
mkdir al-construct-workshop
cd al-construct-workshop
You’ll need to clone the repository to your local machine.
git clone https://bitbucket.org/lifecycle-sandpit/cdk-pattern-template.git
Next, change directory into the repo that’s been downloaded
cd cdk-pattern-template
Make sure you are logged in to your AWS account
awsp is used to select which of your AWS accounts you wish to use
awsp
and make sure to login to AWS (ensure this is to an account with access to the shared services CodeArtifact such as a devops account)
aws sso login
We will need to run the following command to install dependencies of the monorepo which we do by running:
npm ci
Next, we need to login to CodeArtifact, and authenticate with AWS (if you have any errors with this step you may need to update your aws cli)
npm run locallogin
This will run a script pre-packaged with the repo that users your AWS credentials to login to Curtin CodeArtifact.
If all goes well you should see this:

Finally, we run use projen to prepare the library so that it may build at runtime.
npx projen
Projen synthesizes files that are part of your source repository. This means that when you change you projenrc file, and execute projen, other files in your repo may change as a result.