Ugly Green Logo

4n6ir.com

Cloud Investigations

GitHub Organization

MatchMeta.Info

Slack Workspace

17 August 2022

Identify Python Version of CDK

by John Lukach

Identifying the version of Amazon Web Services (AWS) Cloud Development Kit (CDK) is easy when pinned in the Python requirements.txt file.

aws-cdk-lib==2.38.0

Projects may have the pinned version removed for continuous deployments making it hard to identify the exact CDK installation.

Using the cdk.json file to estimate the project’s version based on line count is possible.

Version Number of Lines
2.0.0 24
2.4.0 28
2.8.0 29
2.9.0 30
2.18.0 31
2.21.0 32
2.27.0 33
2.28.0 34
2.29.0 35
2.31.0 36
2.32.0 37
2.35.0 38
2.38.0 40

I use the following GitHub repository to track this information.

https://github.com/jblukach/cdkv2

tags: AWS - CDK - Python