AWS CDK (Cloud Development Kit) Sample

This page demonstrates how InfViz can help you visualize AWS CDK script files. In this example we will use AWS CDK example (https://github.com/aws-samples/aws-cdk-examples).

1. Getting CDK sample files

Download the sample files from github (https://github.com/aws-samples/aws-cdk-examples)

2. Run setup instructions of the sample application

npm install -g aws-cdk
cd typescript/my-widget-service
npm install
npm run build

3. Generate a cloudformation file

Windows

$PSDefaultParameterValues['Out-File:Encoding'] = 'utf7'
cdk synth | out-file test.yaml

Mac Linux

cdk synth > test.yaml

4. Upload and view in InfViz Studio

In InfViz studio

  1. Log in to InfViz Studio (https://studio.infviz.io)

  2. Browse to 'AWS Import'

  3. Click 'Choose Files'

  4. Select 'test.yaml' file generated in step 3

  5. Click 'Upload'

Generated diagram from AWS CDK code

Last updated

Was this helpful?