Fylamynt Product Docs
  • Welcome to Fylamynt
  • Getting started
    • Onboarding Checklist
    • 1. Setting up your first Cloud Service target account
    • 2. Getting to know workflows
    • 3. Creating your first workflow using AWS Cloud Services
    • 4. Setting up your first Integration
    • 5. Setting up your first resource
    • 6. Creating your first Incident Response workflow
    • 7. Incident Management - Automatic workflow execution
    • 8. Quickstart - Fylamynt sample workflows
  • Integrations
    • Amazon EventBridge
    • Ansible
    • AWS
    • AWS Health
    • Container
    • Datadog
    • Elasticsearch
    • Generic Webhook
    • GitHub
    • Google Kubernetes Engine (GKE)
    • Humio
    • Instana
    • Jenkins
    • Jira
    • New Relic
    • Opsgenie
    • PagerDuty
    • Pulumi
    • Prometheus
    • ServiceNow
    • Slack
    • Splunk
    • Splunk On-Call (VictorOps)
    • Spot by Netapp
    • Squadcast
    • Sumo Logic
    • Teleport
    • Terraform Cloud
    • Terraform CLI
    • Twilio
    • Zoom
  • AWS Services
    • EC2
    • Service Health
  • RESOURCES
    • API Keys
    • CloudFormation Templates
    • CloudWatch Targets
    • EKS Permissions
    • S3 Buckets
    • SSH Targets
  • FEATURED WORKFLOWS
    • Stop or Terminate underutilized AWS resources
    • Rightsizing EC2 instances
    • Incident Response Automation
    • Application Performance Monitoring
  • Announcement
    • What's new?
  • Support
    • Contact Fylamynt
Powered by GitBook
On this page
  • Category:
  • Workflow name:
  • Description:
  • Integrations:
  • Workflow review:

Was this helpful?

  1. FEATURED WORKFLOWS

Stop or Terminate underutilized AWS resources

Cost Optimization Featured Workflow

PreviousSSH TargetsNextRightsizing EC2 instances

Last updated 3 years ago

Was this helpful?

Category:

AWS Cost Optimization

Workflow name:

Stop or Terminate underutilized AWS resources

Description:

If you have an underutilized EC2 instance, chances are you’re paying for nonproductive resources. AWS Trusted Advisor provides recommendations for different services that are either idle, unused, or over-provisioned. We found that even though AWS and other Cost management tools make it easy to identify these resources, the problem however is taking action on the recommendations. With Fylamynt we can automate the process of stopping or terminating these services.

Integrations:

Workflow review:

Our example workflow retrieves all the recommendations, in JSON format, for services to be stopped or terminated from the Cost Optimization category of AWS Trusted Advisor however this Action Node can also be replaced by your favorite Cost Management Tool if it has the appropriate APIs available to retrieve this information.

The JSON output from Trusted Advisor is then used as the input for the JSONPATH action node which extracts the recommendations for each service using a Path Expression.

The workflow then transforms the JSON to string, and a message is sent to a specified Slack channel with variables listing the EC2 instance names that were identified with low utilization.

An approval request is then sent to a Slack channel to either stop or terminates the identified services based on the subsequent action node. In our workflow we monitoring the following services for cost savings however this can easily be replaced with other recommendations that might be applicable to your environment.

  • Stopping EC2 instances with low utilization

  • Deleting of EBS volumes with low utilization with an EC2 volume snapshot taken prior to termination

  • Deleting all Elastic IPs with low utilization

  • Stopping all idle RDS DB instances

If a user approves the request in the Slack channel the workflow executes the task against the recommended instances. Our example workflow does not have a trigger to automatically execute it, but through Fylamynt’s Task Manager a recurring schedule can be configured.

Before we review the workflow let’s look at the different tools and integration required to make this happen. First off an has to be configured which provides no-code drag and drop ability to use AWS and allows you to call any AWS API endpoint supported by the boto3 library. And lastly, we require a that provides the ability to send messages and approval requests to your Slack Team.

AWS Target account
Execution action node
Slack integration