# Install aws-cdk with Homebrew, apt, dnf, Nix, zypper

AWS Cloud Development Kit - framework for defining AWS infra as code. Version 2.1129.0 via Homebrew; verified 2026-07-02.

## Install

```sh
sudo av install brew:aws-cdk
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install aws-cdk
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libcdk-java
```

  Evidence: Debian stable package indexes: libcdk-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cdk
```

  Evidence: Fedora Rawhide package metadata: cdk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cdk
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cd/cdk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install cdk-devel
```

  Evidence: openSUSE Tumbleweed package metadata: cdk-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:aws-cdk
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/aws-cdk>
- **Version:** 2.1129.0
- **Source summary:** AWS Cloud Development Kit - framework for defining AWS infra as code
- **Homepage:** <https://github.com/aws/aws-cdk>
- **Repository:** <https://github.com/aws/aws-cdk>
- **Upstream docs:** <https://docs.aws.amazon.com/cdk/v2/guide/cli.html>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.1129.0.tgz>
- **Last updated:** 2026-07-02T16:39:42Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cdk (cli)
- cdk (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.1129.0
- Package-manager updated: 2026-07-02
- Local data: ok
- Upstream repository: https://github.com/aws/aws-cdk
- info: No cached GitHub release or tag data was available.
## Project history and usage

AWS CDK is Amazon Web Services' open-source framework and CLI for defining cloud infrastructure in general-purpose programming languages and provisioning it through AWS CloudFormation. The Homebrew aws-cdk package installs the cdk command-line toolkit.

### Project history

AWS introduced the AWS Cloud Development Kit in developer preview in 2018. The early pitch was infrastructure as code in familiar languages rather than hand-written JSON or YAML templates, with constructs compiling down to CloudFormation.

AWS announced general availability for the CDK's TypeScript and Python support on July 11, 2019. The project then expanded its language and construct ecosystem while keeping CloudFormation as the deployment engine.

AWS CDK v2 became generally available on December 2, 2021 alongside Construct Hub. Version 2 consolidated the AWS Construct Library into aws-cdk-lib, reducing the package sprawl that CDK v1 users had to manage.

### Adoption history

CDK was adopted by developers and platform teams who wanted the repeatability of infrastructure as code without giving up loops, functions, types, IDE tooling, and package reuse. AWS documentation describes support for TypeScript, JavaScript, Python, Java, C#/.NET, and Go.

Its package culture grew around constructs: reusable modules that describe cloud resources and higher-level patterns. That ecosystem matters because the cdk CLI is only one piece; real adoption depends on libraries, generated CloudFormation resource definitions, and repeatable synthesis/deploy workflows.

### How it is used

Typical usage begins with cdk init, then cdk synth to generate a cloud assembly, cdk diff to compare deployed infrastructure, and cdk deploy to apply changes through CloudFormation. The CLI discovers the app command from cdk.json in the project directory, then falls back to ~/.cdk.json or command-line --app.

Configuration is split across CDK files and AWS shared files. CDK uses cdk.json, ~/.cdk.json, and cdk.context.json for app commands, context, feature flags, and cached lookups; AWS SDK/tooling uses ~/.aws/config and ~/.aws/credentials on Unix-like systems and %USERPROFILE%\.aws\config and %USERPROFILE%\.aws\credentials on Windows.

### Why package nerds care

For package nerds, aws-cdk is a Node-distributed cloud compiler dressed as a system CLI. The installed cdk binary coordinates local language runtimes, npm packages, generated constructs, AWS credentials, and CloudFormation APIs, so version skew can matter.

It is also significant because it normalized packaging infrastructure abstractions as libraries. CDK apps are dependency graphs as much as source trees, and the CLI's job is to turn that graph into deterministic cloud assemblies.

### Timeline

- 2018: AWS CDK announced in developer preview.
- 2019: AWS CDK TypeScript and Python reached general availability.
- 2021: AWS CDK v2 and Construct Hub reached general availability.
- 2022: AWS CDK v1 entered maintenance on June 1, 2022.
- 2023: AWS CDK v1 support ended on June 1, 2023.

### Related projects

- AWS CloudFormation is the provisioning engine targeted by CDK synthesis and deployment.
- Construct Hub is the package discovery surface for reusable CDK constructs.
- Projen, CDK8s, and CDK for Terraform are neighboring projects in the construct-based infrastructure tooling family.
- AWS Amplify Gen 2 uses AWS CDK constructs for custom backend resources.

### Sources

- <https://aws.amazon.com/blogs/aws/announcing-general-availability-of-construct-hub-and-aws-cloud-development-kit-version-2/>
- <https://aws.amazon.com/blogs/aws/aws-cloud-development-kit-cdk-typescript-and-python-are-now-generally-available/>
- <https://aws.amazon.com/blogs/developer/aws-cdk-developer-preview/>
- <https://docs.aws.amazon.com/cdk/v2/guide/cli.html>
- <https://docs.aws.amazon.com/cdk/v2/guide/context.html>
- <https://docs.aws.amazon.com/cdk/v2/guide/featureflags.html>
- <https://docs.aws.amazon.com/cdk/v2/guide/home.html>
- <https://docs.aws.amazon.com/sdkref/latest/guide/file-location.html>
- <https://github.com/aws/aws-cdk>


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: cdk.json, ~/.cdk.json, cdk.context.json, ~/.aws/config
- Windows: %USERPROFILE%\.aws\config

## Credential files

- Unix: ~/.aws/credentials
- Windows: %USERPROFILE%\.aws\credentials
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** aws-cdk
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libcdk-java - 1:2.11-1: installed executable or alias match | Debian stable package indexes: libcdk-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Chemistry Development Kit (CDK) Java libraries | https://cdk.github.io/
- Nix - cdk: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/cd/cdk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcdk-java - 1:2.9-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libcdk-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Chemistry Development Kit (CDK) Java libraries | https://cdk.github.io/
- dnf - cdk - 5.0.20260119-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: cdk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Curses Development Kit | https://invisible-island.net/cdk/
- dnf - cdk-devel - 5.0.20260119-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: cdk-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for cdk | https://invisible-island.net/cdk/
- dnf - cdk-doc - 5.0.20260119-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: cdk-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation and examples for cdk | https://invisible-island.net/cdk/
- zypper - cdk-devel - 5.0.20230201-1.7: installed executable or alias match | openSUSE Tumbleweed package metadata: cdk-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development Part of Curses Development Kit | https://invisible-island.net/cdk/
- zypper - libcdk6_3_4 - 5.0.20230201-1.7: installed executable or alias match | openSUSE Tumbleweed package metadata: libcdk6_3_4 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | The Runtime for the Curses Development Kit - Shared library | https://invisible-island.net/cdk/


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [amazon-ecs-cli](https://www.automicvault.com/pkg/brew/amazon-ecs-cli/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-amplify](https://www.automicvault.com/pkg/brew/aws-amplify/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-console](https://www.automicvault.com/pkg/brew/aws-console/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-elasticbeanstalk](https://www.automicvault.com/pkg/brew/aws-elasticbeanstalk/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-es-proxy](https://www.automicvault.com/pkg/brew/aws-es-proxy/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-google-auth](https://www.automicvault.com/pkg/brew/aws-google-auth/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-iam-authenticator](https://www.automicvault.com/pkg/brew/aws-iam-authenticator/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-keychain](https://www.automicvault.com/pkg/brew/aws-keychain/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-cdk](https://www.automicvault.com/pkg/npm/aws-cdk/) - Same normalized package name appears in another local ecosystem. Shared terms: aws, aws-cdk, cdk.
- [org-formation](https://www.automicvault.com/pkg/brew/org-formation/) - Both packages touch the same language runtime or ecosystem. Shared terms: as, aws, cli, cloud, cloud-infrastructure.
- [aws-cdk](https://www.automicvault.com/pkg/npm/aws-cdk/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/aws-cdk.yml](https://github.com/automic-vault/db/blob/main/combined/aws-cdk.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
