{"id":17102713,"url":"https://github.com/robertd/alpine-aws-cdk","last_synced_at":"2025-04-13T00:40:59.986Z","repository":{"id":58070897,"uuid":"171715191","full_name":"robertd/alpine-aws-cdk","owner":"robertd","description":"Minimal AWSCLI \u0026 AWS-CDK \u0026 NodeJS/NPM built on top of Alpine Linux Docker Image","archived":false,"fork":false,"pushed_at":"2024-02-15T02:48:23.000Z","size":158,"stargazers_count":12,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T06:01:56.954Z","etag":null,"topics":["aws-cdk","docker"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/robertd/alpine-aws-cdk","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-02-20T17:05:45.000Z","updated_at":"2023-05-10T01:05:46.000Z","dependencies_parsed_at":"2023-09-28T23:43:49.429Z","dependency_job_id":null,"html_url":"https://github.com/robertd/alpine-aws-cdk","commit_stats":null,"previous_names":[],"tags_count":326,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertd%2Falpine-aws-cdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertd%2Falpine-aws-cdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertd%2Falpine-aws-cdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertd%2Falpine-aws-cdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertd","download_url":"https://codeload.github.com/robertd/alpine-aws-cdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650414,"owners_count":21139672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-cdk","docker"],"created_at":"2024-10-14T15:29:50.572Z","updated_at":"2025-04-13T00:40:59.965Z","avatar_url":"https://github.com/robertd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimal [AWS-CLI](https://github.com/aws/aws-cli) \u0026 [AWS-CDK](https://github.com/aws/aws-cdk) \u0026 NodeJS/NPM/Yarn built on top of Alpine Linux Docker Image\n\nThis is a great base image for running aws-cdk in CI/CD environments.\n\n## Supported Docker versions\n\nThis image is officially supported on Docker version 18.09.2+.\n\nSupport for older versions is provided on a best-effort basis.\n\n## Contributing\n\nYou are invited to contribute new features, fixes, or updates, large or small.\n\nI am always thrilled to receive pull requests, and do my best to process them as fast as I can.\n\n## Usage\n\n### Synthesize a CDK stack\n\nIf the current directory contains a CDK App:\n\n```sh\ndocker run --rm -v $(pwd):/app -w /app robertd/alpine-aws-cdk /bin/sh -c 'cdk synth'\n```\n\nIf you want to synthesize all stacks in a TypeScript based CDK multi stack application:\n\n```sh\ndocker run --rm -it -v $(pwd):/app -w /app \\\n  -e AWS_DEFAULT_REGION=\u003cyour_aws_region\u003e \\\n  -e AWS_ACCESS_KEY_ID=\u003cyour_access_key_id\u003e \\\n  -e AWS_SECRET_ACCESS_KEY=\u003cyour_secret_access_key\u003e \\\n  robertd/alpine-aws-cdk /bin/sh -c \"cdk --app 'npx ts-node bin/cdk-app-multi-stack.ts' synth '*'\"\n```\n\n### Deploy a CDK stack with local AWS configuration\n\nDeploy the stack using the local default AWS environment:\n\n```sh\ndocker run --rm -v $(pwd):/app -v ~/.aws/:/root/.aws -w /app robertd/alpine-aws-cdk /bin/sh -c 'cdk deploy'\n```\n\nIf you set the `--require-approval` option to `never` in the `cdk.json`file  and\nCDK detects security-sensitive elements in the stack you will get the following warning and need to use the `-it` docker option for an interactive session:\n\n\u003e \"--require-approval\" is enabled and stack includes security-sensitive updates, but terminal (TTY) is not attached so we are unable to get a confirmation from the user\n\nThis also exposes all credentials stored in your AWS configuration.\nTo avoid this inject an AWS environment explicitely by exporting an access key id, the corresponding secret and a region:\n\n```sh\ndocker run --rm -it -v $(pwd):/app -w /app \\\n  -e AWS_DEFAULT_REGION=\u003cyour_aws_region\u003e \\\n  -e AWS_ACCESS_KEY_ID=\u003cyour_access_key_id\u003e \\\n  -e AWS_SECRET_ACCESS_KEY=\u003cyour_secret_access_key\u003e \\\n  robertd/alpine-aws-cdk /bin/sh -c 'cdk deploy'\n```\n\n### Destroy a CDK stack\n\nTo destroy a CDK stack you need an interactive process using the `-it` option:\n\n```sh\ndocker run --rm -it -v $(pwd):/app -v ~/.aws/:/root/.aws -w /app robertd/alpine-aws-cdk /bin/sh -c 'cdk destroy'\n```\n\n### Create a new CDK stack\n\nTo initialize a new CDK stack with Typescript flavor:\n\n```sh\nrun --rm -it -v $(pwd):/app -v ~/.aws/:/root/.aws -w /app robertd/alpine-aws-cdk /bin/sh -c 'cdk init --language typescript sample-app'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertd%2Falpine-aws-cdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertd%2Falpine-aws-cdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertd%2Falpine-aws-cdk/lists"}