CDK-EDI
AWS CDK (EDI) is the AWS Cloud Development Kit — Infrastructure-as-Code framework in TypeScript / Python / Java / .NET that synthesises CloudFormation templates to provision EDI gateways on AWS.
Definition
CDK provides Constructs (L1 = 1-to-1 CloudFormation mapping, L2 = simplified abstraction, L3 = patterns). Infrastructure is programmed in typed code; CDK synthesises CloudFormation JSON, then applies via `cdk deploy`. Unit tests are possible (jest).
Origin
GA-launched in July 2019 by AWS. CDK v2 published in December 2021 (one aws-cdk-lib package for all services).
Use
An EDI team writes a TypeScript CDK Stack creating: a VPC (L2 ec2.Vpc), an EKS Cluster (L2 eks.Cluster), an S3 Bucket with ILM (L2 s3.Bucket), a Route53 record (L2 route53.ARecord). Typed code catches at compile time errors Terraform would only detect at apply time.
Related terms
- Terraform — HCL alternative.
- Kubernetes — target.
- S3 — provisioned resource.
- Helm — K8s complement.