Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@aws-c2a/visualizer
Advanced tools
@aws-c2a/visualizer
is a package that generates a web app to help visualize your
C2A diff tree. We built @aws-c2a/visualizer
to help with developing @aws-c2a/presets
and understand the state of the C2A diff tree.
Note: @aws-c2a/visualizer
currently only support single template comparisons.
We recommend using the aws-c2a
CLI to run the
visualizer. However, if you wish to interact directly with the package itself check
out the integration section below.
Nodes and edges in the visualizer reflect nodes and edges in the C2A diff tree. You can use the visualizer to help better understand the rules language. The visualizer can help you pinpoint query-able properties through the inspect window.
You can also use the visualizer to understand relationships between properties and their resources.
For example, creating a new resource will incur a InsertComponentOperation
, however this will not
trigger any operations on the property themselves. So you can't specifically query for new properties
through { "propertyOperationType": "INSERT" }
. Behavior like these are easier to spot with the
help of the visualizer!
To use the visualizer in a production environment:
Install the @aws-c2a/visualizer
package
yarn add @aws-c2a/visualizer
Import package and obtain the path to the template file
const templatePath = require(resolve('@aws-c2a/visualizer/fixtures/template.index.html'));
const template = await fs.promises.readFile(templatePath, 'utf-8');
Replace the placeholder values in the template file with stringified CloudFormation Templates
const visualizer = template
.replace('"!!!CDK_CHANGE_ANALYSIS_BEFORE"', before)
.replace('"!!!CDK_CHANGE_ANALYSIS_AFTER"', after);
To use the visualizer in a developer environment:
First install and build all packages.
git clone https://github.com/cdklabs/awscdk-change-analyzer.git
cd awscdk-change-analyzer
yarn install
yarn build
cd packages/@aws-c2a/visualizer
Then create the necessary data files (both CloudFormation templates) for testing.
mkdir data
touch data/before.json data/after.json
Now you can start developing with @aws-c2a/visualizer
running locally.
yarn dev
FAQs
Tool to visualize the diff graph
The npm package @aws-c2a/visualizer receives a total of 2 weekly downloads. As such, @aws-c2a/visualizer popularity was classified as not popular.
We found that @aws-c2a/visualizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.