How does AWS CDK work?

AWS CDK works on a declarative approach, where Java developers define their desired infrastructure state using code. That code written in a programming language like Java, Python, or any other is transformed into AWS CloudFormation templates. These are further used to create and manage resources on AWS. For easier understanding, let’s explore 3 major components of CDK.