Best practices for AWS cost optimization: Difference between revisions

From PUBLIC-WIKI
Jump to navigation Jump to search
(Created page with "== Unused EBS Volumes == * Login to the AWS Management Console : https://console.aws.amazon.com/ec2/ * In the navigation panel, under Elastic Block Store, click Volumes. * To...")
 
No edit summary
 
Line 22: Line 22:
* Decide if you wish to terminate (delete) the EC2 instance.
* Decide if you wish to terminate (delete) the EC2 instance.
* To terminate the EC2 instance -> from Actions -> select Instance State -> select Terminate -> choose Yes, Terminate
* To terminate the EC2 instance -> from Actions -> select Instance State -> select Terminate -> choose Yes, Terminate
* Change the AWS region from the navigation bar and repeat the process for the other regions.
* Log off the AWS Management console.
== Unassociated Elastic IP Addresses ==
* Sign in to the AWS Management Console
: https://console.aws.amazon.com/vpc/
* In the left navigation panel, under Virtual Private Cloud section, choose Elastic IPs.
* Select Unassociated from the Filter dropdown menu to filter all the available EIPs and return the unattached ones. The filtering process should return the Elastic IPs that are not currently associated with any running EC2 instances or Elastic Network Interfaces (ENIs). The unattached EIPs returned at this step can be safely released (see Remediation/Resolution section).
* Change the AWS region from the navigation bar and repeat the process for the other regions.
* Log off the AWS Management console.
== Underutilized Amazon Redshift Clusters ==
* Login to the AWS Management Console
: https://console.aws.amazon.com/redshift/
* In the left navigation panel, under Redshift Dashboard, click Clusters.
* Choose the Redshift cluster that you want to examine then click on its identifier link listed in the Cluster column.
* On the cluster settings page, select the Performance tab to access the monitoring panel.
* On the monitoring panel displayed for the selected cluster, perform the following actions:
:* To verify the Redshift cluster Database Connections usage graph, follow the steps below:
::* From the Time Range dropdown list, select Last 1 Week.
::* From the Period list, select 1 Hour.
::* From the Statistic dropdown list, select Average.
::* And from the Metrics dropdown list, select DatabaseConnections.
:* Once the monitoring data is loaded into the Database Connections usage graph, check the number of database connections for the last 7 days. If the average usage (count) has been less than 1, e.g., the selected Redshift cluster qualifies as candidate for the idle cluster.
* If you no longer need your RedShift cluster, you can delete it.
* On the navigation menu, choose CLUSTERS.
* Choose the cluster to delete.
* For Actions, choose Delete. The Delete cluster page appears.
* Choose Delete cluster.
* Change the AWS region from the navigation bar and repeat the process for the other regions.
* Change the AWS region from the navigation bar and repeat the process for the other regions.
* Log off the AWS Management console.
* Log off the AWS Management console.

Latest revision as of 17:54, 13 April 2020

Unused EBS Volumes

  • Login to the AWS Management Console
https://console.aws.amazon.com/ec2/
  • In the navigation panel, under Elastic Block Store, click Volumes.
  • To identify any unattached EBS volumes, check their status under State column. If the status is available, the volume is not attached to an EC2 instance and can be safely deleted.
  • Select the unused EBS volume -> click on Actions -> Delete volume
  • Change the AWS region from the navigation bar and repeat the process for the other regions.
  • Log off the AWS Management console.

Low Utilization Amazon EC2 Instances

  • Sign in to the AWS Management Console
https://console.aws.amazon.com/ec2/
  • In the left navigation panel, under INSTANCES section, choose Instances.
  • Select the EC2 instance that you want to examine.
  • Select the Monitoring tab from the dashboard bottom panel.
  • Within the CloudWatch metrics section, perform the following actions:
  • Click on the CPU Utilization (Percent) usage graph thumbnail to open the instance CPU usage details box. Inside the CloudWatch Monitoring Details dialog box, set the following parameters:
  • From the Statistic dropdown list, select Average.
  • From the Time Range list, select Last 1 Week.
  • From the Period dropdown list, select 1 Hour.
  • Once the monitoring data is loaded, verify the instance CPU usage for the last 7 days. If the average usage (percent) has been less than 2%, e.g. , the selected EC2 instance qualifies as candidate for an idle instance. Click Close to return to the dashboard.
  • Decide if you wish to terminate (delete) the EC2 instance.
  • To terminate the EC2 instance -> from Actions -> select Instance State -> select Terminate -> choose Yes, Terminate
  • Change the AWS region from the navigation bar and repeat the process for the other regions.
  • Log off the AWS Management console.

Unassociated Elastic IP Addresses

  • Sign in to the AWS Management Console
https://console.aws.amazon.com/vpc/
  • In the left navigation panel, under Virtual Private Cloud section, choose Elastic IPs.
  • Select Unassociated from the Filter dropdown menu to filter all the available EIPs and return the unattached ones. The filtering process should return the Elastic IPs that are not currently associated with any running EC2 instances or Elastic Network Interfaces (ENIs). The unattached EIPs returned at this step can be safely released (see Remediation/Resolution section).
  • Change the AWS region from the navigation bar and repeat the process for the other regions.
  • Log off the AWS Management console.

Underutilized Amazon Redshift Clusters

  • Login to the AWS Management Console
https://console.aws.amazon.com/redshift/
  • In the left navigation panel, under Redshift Dashboard, click Clusters.
  • Choose the Redshift cluster that you want to examine then click on its identifier link listed in the Cluster column.
  • On the cluster settings page, select the Performance tab to access the monitoring panel.
  • On the monitoring panel displayed for the selected cluster, perform the following actions:
  • To verify the Redshift cluster Database Connections usage graph, follow the steps below:
  • From the Time Range dropdown list, select Last 1 Week.
  • From the Period list, select 1 Hour.
  • From the Statistic dropdown list, select Average.
  • And from the Metrics dropdown list, select DatabaseConnections.
  • Once the monitoring data is loaded into the Database Connections usage graph, check the number of database connections for the last 7 days. If the average usage (count) has been less than 1, e.g., the selected Redshift cluster qualifies as candidate for the idle cluster.
  • If you no longer need your RedShift cluster, you can delete it.
  • On the navigation menu, choose CLUSTERS.
  • Choose the cluster to delete.
  • For Actions, choose Delete. The Delete cluster page appears.
  • Choose Delete cluster.
  • Change the AWS region from the navigation bar and repeat the process for the other regions.
  • Log off the AWS Management console.