What Is TotalCloud?
Why Use TotalCloud?
AWS Cost Optimization
Schedule Starting of AWS EC2 Instances
Schedule Stopping of AWS EC2 Instances
Delete Unattached AWS EBS Volumes
Notify All Publicly Open AWS RDS Instances Once in a Week
Notify If An AWS User's Last Activity is More Than 90 Days
Notify All Public Amazon S3 Buckets Once in a Week
Create a Rule for an EC2 Security Group
Revoke a Rule From an EC2 Security Group
Getting started with nodes
Working with Nodes
Advanced Filters in the Resource Node
Sample JSON Output Showing Array of all Resources
Add-ons in the Resource Node
Sample JSON Output Showing All Resources and SG Attributes of Each Instance
Usage Examples of Resource Node
Types of Filter Node
Security Group Filter
Usage Examples of Filter Node
User Approval Node
Creating a Workflow
Creating Your First Workflow
Create Workflows Using Templates
Create Workflows From Scratch
Stopping EC2 Instances Every Evening
Executing a Workflow
Updated by Jayashree Hegde
Custom node helps you add custom logic into the workflow. Adding custom code enables you to add or remove qualities from input data. The custom code is executed in a NodeJS v10 sandbox. Following are the types of custom logic:
- Lambda cost predictor
- Lambda cost detector
- Custom logic which allows the user to write custom code.
Following should be noted while writing a custom function:
- A context object is available in the custom function which contains a collection which is the output of the previous node (input to this node) and the selected region in the action or resource node previous to this node.
- You could transform the data in whatever way you want. Please note that the collection object is read only. Any transformations should be on a copy of it. Finally,
- Call exit with (null, result). If there is an error, you could pass the error as the first parameter to the exit function and the second parameter should be null.
Here is an example of the Custom node with a predefined custom logic: