Member-only story

Choosing Between AWS CDK and CloudFormation

AWS CDK vs. CloudFormation

Otutu Chidinma Janefrances
5 min readSep 18, 2023
image gotten from google.com

For beginners, it will be best to understand what infrastructure as code (IaC) means before delving into AWS CDK and CloudFormation.

Infrastructure as Code (IaC) is an approach to managing and provisioning cloud infrastructure in a more automated, efficient, and scalable way. It involves defining and managing infrastructure resources, such as virtual machines, databases, networking components, and more, using code and scripts rather than manual configuration through a graphical user interface or command-line tools.

AWS offers two powerful tools for infrastructure as code (IaC) — the AWS Cloud Development Kit (CDK) and AWS CloudFormation. Both serve the same fundamental purpose: provisioning and managing AWS resources, but they have distinct features, use cases, advantages, and disadvantages.

We’ll explore when to use CDK over CloudFormation and vice versa

AWS CloudFormation

AWS CloudFormation is a declarative way to define AWS infrastructure using JSON or YAML templates. It provides a standardized approach to provisioning and managing AWS resources.

AWS Cloud Development Kit (CDK)

--

--

Otutu Chidinma Janefrances
Otutu Chidinma Janefrances

Written by Otutu Chidinma Janefrances

Software Developer | Content Creator| Writer

No responses yet