What is Report Node?
Report node helps you automatically send sharable reports to yourself, to specific team(s), or peer(s) via email. It generates reports in the form of pdf, csv, or charts. When this node executes, a secure link to the downloadable report is sent to your email ID.
Working with Report Node
To define a Report node in a Workflow, follow the steps below:
- Go to workflow editor, after starting a new workflow or picking a new template
- If you start a new workflow:
- Click on the Report icon available on the left navigation menu.
- Double click on the Report node to access the parameters input window.
- If you pick an existing template:
- Double click on existing Report node to access the parameters input window.
- Enter the required information in the parameters input window.
- Click on Save Node.
Upon successful execution of this node, an email is sent to the registered email ID with a secure link to download the report.
Here's how a sample email looks like:
Here's how the report looks when you click on the secure link.
Generate a report encompassing a graph of the count of volumes in each AZ. To create this graph, you need to set AZ as X-axis and volumes as Y-axis. Note that this is possible if your workflow’s Resource node fetches EC2 Volumes.
You can perform three types of reporting with Report node:
- Passthrough: This sends the report encompassing all the data it receives. Example: Create a list of all EC2 instances belonging to Test Env.
- Input transformer: This sends the report in a tabular format with data from only the selected columns/keys. Example: Create a table listing VolumeID, Volume type, and Snapshot IDs of EC2 volumes belonging to N. Virginia region.
- Chart: This sends the report in graphical format with your choice of keys for X axis and Y axis. Note that:
- If you choose the Y axis as a number, the chart will consider the sum of values of each unique value of X axis. Example: Create a graph of sum of the size of all the volumes in each Availability Zone (AZ).
- If you choose the Y axis as a string, the chart will consider the count of values of Y axis for each unique value of X axis. Example: Create a graph of the count of volumes in each AZ.