InfViz
  • What is InfViz?
  • Getting Started
  • InfViz Studio
    • InfViz Studio Professional Benefits
    • Working with Diagram Builder
    • Working with Design Builder
    • Working with View Builder
    • Working with AWS Import
      • Setting up AWS Access Key
      • Setting up AWS Cross Account Role
      • Adding Cost Explorer access
  • InfViz Desktop
  • Tutorials
    • Understaing your AWS evironment
      • 1) AWS Account Safety
      • 2) Know your resources and spend
      • 3) Connectivity between resources
      • 4) Well Architected Review
      • 5) Enterprise multi-account management
      • 6) Enterprise centralised docuemention
  • Samples
    • InfViz Diagram Samples
    • AWS CloudFormation Samples
    • AWS CDK (Cloud Development Kit) Sample
Powered by GitBook
On this page
  • 1. Getting CDK sample files
  • 2. Run setup instructions of the sample application
  • 3. Generate a cloudformation file
  • 4. Upload and view in InfViz Studio

Was this helpful?

  1. Samples

AWS CDK (Cloud Development Kit) Sample

PreviousAWS CloudFormation Samples

Last updated 6 years ago

Was this helpful?

This page demonstrates how can help you visualize AWS CDK script files. In this example we will use AWS CDK example ().

1. Getting CDK sample files

Download the sample files from github ()

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. Browse to 'AWS Import'

  2. Click 'Choose Files'

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

  4. Click 'Upload'

Log in to InfViz Studio ()

https://studio.infviz.io
InfViz
https://github.com/aws-samples/aws-cdk-examples
https://github.com/aws-samples/aws-cdk-examples
Generated diagram from AWS CDK code