January 24, 2023
First we will setup our development environment using Docker and add a new aws service to docker-compose.yml.
# aws/Dockerfile FROM node:18-slim # AWS CDK will use the folder name for the modules WORKDIR /site ARG AWS_CDK_VERSION=2.53.0 RUN apt-get update -y &&\ apt-get install -y --no-install-recommends \ ca-certificates \ curl \ groff \ less \ unzip RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscli.zip &&\ unzip awscli.zip &&\ ./aws/install RUN npm install -g \ aws-cdk@${AWS_CDK_VERSION} \ esbuild # NOTE: Uncomment these lines after you have ran `cdk init app` # COPY src/package.