cdk-remote is a docker image that helps you deploy AWS CDK apps without installing aws-cdk CLI at local or even without installing npm or node.
pahud/cdk-remote:latest
create a cdk-remote shell script under your system $PATH and chmod +x it
#!/bin/bash
docker run -ti \
-e AWS_DEFAULT_REGION={AWS_DEFAULT_REGION-us-east-1} \
-e AWS_REGION=${AWS_REGION-${AWS_DEFAULT_REGION}} \
-v ${HOME}/.aws:/root/.aws pahud/cdk-remote $@
To deploy CDK application hosted on https://github.com/pahud/aws-cdk-serverless-sample
# view the diff before deployment
$ cdk-remote github.com/pahud/aws-cdk-serverless-sample diff
# deploy it
$ cdk-remote github.com/pahud/aws-cdk-serverless-sample deploy
To deploy the EksStack stack from https://github.com/pahud/cdk-samples/typescript
# view the diff before deployment
$ cdk-remote github.com/pahud/cdk-samples/typescript diff EksStack -c enable_stack=EksStack -c use_default_vpc=1
# deploy it
$ cdk-remote github.com/pahud/cdk-samples/typescript deploy EksStack -c enable_stack=EksStack -c use_default_vpc=1
To deploy the Bottlerocket stack with Amazon EKS cluster from https://github.com/pahud/cdk-samples/typescript
# view the diff before deployment
$ cdk-remote github.com/pahud/cdk-samples/typescript diff Bottlerocket -c enable_stack=Bottlerocket
# deploy it
$ cdk-remote github.com/pahud/cdk-samples/typescript deploy Bottlerocket -c enable_stack=Bottlerocket
Please note cdk-remote will mount your AWS credentials with docker -v into the docker container and deploy remote CDK apps on behalve of yourself to your AWS environment. Make sure you trust the remote application before deploying it.
Content type
-
Digest
Size
75.2 MB
Last updated
about 5 years ago
docker pull pahud/cdk-remote