First you need to install the cdk
cli globally:
npm install -g aws-cdk
yarn install
Next, you need to created a .env
file in the root directory and define the following three variables:
AWS_PROFILE
: The name of the Named Profile that provides the credentials for your account.AWS_ACCOUNT_ID
: Your AWS Account ID number.AWS_REGION
: The AWS Region to which thecdk
cli will submit api calls.
The file should look something like this:
AWS_PROFILE=spencer
AWS_ACCOUNT_ID=7124579443257
AWS_REGION=us-east-1
You can also run yarn env
and a cli will prompt you the values and create the file for you. The .env
file is not tracked by git.