https://github.com/syniol/aws-cdk-docker
AWS CDK Docker for all supported languages in version 2
https://github.com/syniol/aws-cdk-docker
aws-cdk aws-cdk-g docker
Last synced: 5 months ago
JSON representation
AWS CDK Docker for all supported languages in version 2
- Host: GitHub
- URL: https://github.com/syniol/aws-cdk-docker
- Owner: syniol
- License: other
- Created: 2023-06-24T21:42:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-30T21:32:00.000Z (over 1 year ago)
- Last Synced: 2025-06-04T21:37:05.705Z (about 1 year ago)
- Topics: aws-cdk, aws-cdk-g, docker
- Language: Dockerfile
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS CDK Docker
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.
## Useful Makefile Commands
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 for `cdk`
* `make down`: Stops & Removes `cdk` container
* `make cdk`: Enters `cdk` container
## Useful CDK Commands
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.
```bash
mkdir deploy
cd deploy
cdk init app --language go
```
### Links
* [Getting Started with AWS CDK V2](https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-go.html)
* [API Reference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-construct-library.html)
#### Credits
* [Hadi Tajallaei](mailto:hadi@syniol.com)
Copyright © 2024, Syniol Limited. All rights reserved.