AWS CDK in IT — global market
AWS CDK is an open framework for defining AWS infrastructure in general-purpose programming languages: TypeScript, JavaScript, Python, Java, C#/.NET and Go. A CDK application is built from constructs and stacks; a CloudFormation template is synthesised from it, and CloudFormation provisions the resources. CDK is therefore not a replacement for CloudFormation but an authoring layer on top of it: it brings code reuse and familiar development tools, but does not remove CloudFormation's constraints.
Constructs are the building blocks of CDK. L1 maps directly to one CloudFormation resource, L2 wraps a typical configuration, L3 assembles a pattern from several resources. Constructs are grouped into stacks, and stacks into an application; a stack remains the smallest unit of deployment, and a dependency between stacks is not always set by hand: when one stack refers to a resource in another, CDK adds a cross-stack reference and the dependency itself, while an explicit order can be set with stack.addDependency. The CDK CLI handles synthesis: cdk synth produces the template, cdk diff shows changes, cdk deploy sends the stack to CloudFormation. Before the first deployment in an account and region, bootstrap is required: service resources including an S3 bucket, ECR and IAM roles.
Where AWS CDK is used
- AWS infrastructure in the same repository as the application: network, IAM, databases, containers and functions defined in code.
- Repeatable dev, staging and production environments from the same constructs with different parameters.
- Reusable constructs for common services and shared team standards.
- CI/CD: synthesising and comparing templates during review, deploying through a pipeline.
- A gradual move from hand-written CloudFormation templates to infrastructure defined in code.
Typical work
- Design the application and stacks: what belongs in a stack and which dependencies link stacks.
- Write constructs: choose the L1/L2/L3 level, set parameters and reusable components.
- Manage synthesis and deployment: cdk synth, cdk diff, cdk deploy, context and environments.
- Configure bootstrap and understand the roles, bucket and ECR it creates.
- Test infrastructure with assertions and check changes in the pipeline.
Related technologies
- AWS CloudFormation — the service CDK deploys stacks through (page planned)
- Terraform — another infrastructure-as-code tool
- TypeScript — one of the supported CDK languages
- Python — one of the supported CDK languages
Professions using AWS CDK
This is an editorial link, not a ranking of professions.
Applications and specializations
Demand and market
Roles and careers
Pay
Geography
Work formats
Related technologies
Jobs and companies · 0
There are no current job postings for this technology in the snapshot yet.
Frequently asked questions
Short answers about the technology, without market figures.
Is AWS CDK CloudFormation?
No. CDK is an authoring layer: an application in a supported language synthesises a CloudFormation template, and CloudFormation performs the deployment and manages the stack. CDK does not replace the deployment service.
Does CDK replace Terraform?
No. They are different infrastructure-as-code tools: CDK defines AWS resources and deploys them through CloudFormation, while Terraform works with its own plan and state and supports multiple providers. The choice depends on requirements, the team and the process already in place.
Which languages can I use with CDK?
AWS CDK v2 supports TypeScript, JavaScript, Python, Java, C#/.NET and Go. The set of features and the library version depend on the language and the CDK version.
What is a construct, and how do L1, L2 and L3 differ?
A construct is a component that represents one or more CloudFormation resources and their configuration. L1 maps directly to one resource, L2 offers a more convenient configuration, and L3 assembles a pattern from several resources. The higher the level, the fewer settings are needed by hand, but that does not mean less overall control: escape hatches and raw overrides give access to the underlying L1 resource and its CloudFormation properties.
Why is bootstrap needed?
Before the first deployment in an account and region, CDK creates service resources: an S3 bucket for files and assets, ECR for Docker images and IAM roles for deployment. Without bootstrap the environment is not prepared; bootstrap is done separately for each account and region.
How can CDK infrastructure be tested?
The standard approach is the assertions module: fine-grained assertions check specific properties of the synthesised template, while snapshot tests capture the whole template. In addition, synth and diff show changes before deployment.