This could be used as a base for any new AWS CDK project. It uses Docker dind as a base image. It also includes the installation of following software programs:
- AWS CLI
- nodejs
- npm
- Go
- Java
- .NET 6
- Python
It runs in a privileged mode due to use of docker inside the docker container. This allows CDK to build and publish docker images or synthesis Lambda's container runtime inside the running container.
There is a makefile at the root of this project, this would make running docker-compose.yml
easier.
make: Builds docker images (it ignores cached image & existing container)make up: Creates and runs docker container forcdkmake down: Stops & Removescdkcontainermake cdk: Enterscdkcontainer
Start a new CDK project using Golang inside the cdk container using make cdk and then you
could run all cdk commands; including the ones demonstrated below.
mkdir deploy
cd deploy
cdk init app --language goCopyright © 2024, Syniol Limited. All rights reserved.