
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
@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 0 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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.