- Launch devcontainer based
devcontainer.jsonfile. (If you VSCode then'Ctrl + P (Win)'/'Cmd + P (MacOS)': > Reopen folder in Container). - You can customize the IDE libraries, extensions, and settings in the
devcontainer.jsonfile. - You can also customize the
Dockerfilein the.devcontainerfolder.
Link: NVM Repo
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bashnpm install -g aws-cdkcd workshop-2- Create a new AWS CLI profile (You can skip this step if you had configured a profile).
aws configure --profile <PROFILE_NAME>- Test the configured profile with this command.
aws s3 ls --profile <PROFILE_NAME>cdk bootstrap# Install dependencies
npm install- Create a
.envfile in the root of the project.
# Copy the .env.example file to .env
cp .env.example .env- Update the
.envfile with the appropriate values. - Expose the environment variables to the shell.
# Expose the environment variables to the shell
export $(grep -v '^#' .env | xargs)|-- .devcontainer # VSCode devcontainer configuration
| |-- Dockerfile # Dockerfile for devcontainer
| |-- devcontainer.json # VSCode devcontainer configuration
|-- workshop-2 # Workshop 2 root folder
| |-- README.md # Workshop 2 README
| |-- .env.example # Environment variables example
| |-- .env
| |-- .gitignore
| |-- cdk.json # CDK configuration
| |-- package.json # NPM package configuration
| |-- tsconfig.json # Typescript configuration
| |-- bin # CDK Entrypoint
| |-- cdk.outs # CDK outputs
| |-- docs # Workshop 2 documentation
| |-- lib # Construct Libraries
| | |-- component # Common Components
| | |-- book-stack.ts # Book Nested Stack
| | |-- cognito-stack.ts # Cognito nested stack
| | |-- order-stack.ts # Order Nested Stack
| | |-- main.ts # Main Stack
| |-- src # Source code
| | |-- books # Books lambda functions
| | |-- reviews # Reviews lambda functions
| | |-- orders # Orders lambda functions
| | |-- requirements.txt # Python dependencies
| |-- test # Unit tests