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
The goal of this workflow is to create a ticket on Freshdesk( ) if the CPU utilization of an EC2 instance is less then 10%.
- Trigger node
- Resource node
- Filter node
- Monitoring node
- Filter node
- HTTP node
This is how the workflow looks:
This node sets the workflow to trigger everyday (recurrently)
From the resource node you can pick the desired resource - here the example uses EC2.
The filter node separates the running instances from the pool of instances.
The metric of monitoring the instance is CPU utilization. We check if the CPU utilization of the instance is less then 10%.
We use a filter node again to segregate the instances with CPU utilization less than 10% from those with higher CPU utilization.
Lastly we will use the HTTP node:
- Select input collection - here we enter the node reference of the previous node i.e the filter node in this case
- Method - Here we enter the type of HTTP request that we want to make such as GET, PUT, POST, DELETE. So we add POST in the method option as the POST carries request parameter in the message body.
- Endpoint URL- Here we add the final destination where you want the HTTP call to trigger. We have taken our Freshdesk URL as that the endpoint in this usecase.
- Headers - The type of file that we want to send needs to be added here as you can see from the example ours is a JSON file.
- Body- The data that we want to send is to be written here this can vary for each usecase.
- Basic Auth - Basic Auth the authentication that you want to attach with this HTTP request. Using Basic Auth is a helps to secure the data.