cd my-eks-blueprints
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
source ~/.bashrc
nvm -v
nvm install v18
nvm use v18
node -v
npm -v
You need to use Node.js version 14.15.0 or higher to use CDK. For more information, see here
npm -g install typescript
npm install -g aws-cdk@2.147.3
cdk --version
cdk init app --language typescript
You can read more about CDK.
export AWS_DEFAULT_REGION=ap-southeast-1
export ACCOUNT_ID=212454837823
Note: Remember to replace ACCOUNT_ID with your actual ID for the lab.
To perform bootstrapping, run:
cdk bootstrap --trust=$ACCOUNT_ID \
--cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess \
aws://$ACCOUNT_ID/$AWS_REGION
On successful bootstrapping, you will see:
Environment aws://212454837823/ap-southeast-1 bootstrapped.
npm i @aws-quickstart/eks-blueprints dotenv