How to Leverage AWS RDS Processor Features for Pricing Comparison Using CloudQuery
Overview
Understanding the cost implications of your instance configurations is crucial to managing your AWS resources, particularly Amazon Relational Database Service (RDS) instances. By leveraging the processor_features field from CloudQuery's AWS integration, you can gain insights into your AWS RDS instances' core count and threads per core. This information can be used to compare the hourly pricing of different instance types with the same vCPU configuration. This approach helps you make informed decisions to optimize costs while maintaining optimal performance.
Before diving into leveraging the processor_features, let's first understand the aws_rds_instances table that is generated by our AWS source integration. The aws_rds_instances table contains various details about your RDS instances, including the processor_features field, which provides information such as the number of cores (coreCount) and threads per core (threadsPerCore).
Note: This post assumes that you have already read the comprehensive guide on using the AWS Pricing API from CloudQuery and that you are familiar with how to use the AWS pricing plugin. Ensure that you have configured your AWS Pricing Plugin to pull data from the necessary AWS pricing tables, including: awspricing_service_products and awspricing_service_terms.
With CloudQuery, you can easily export your AWS data to a PostgreSQL database (or any other data destination), enabling comprehensive analysis and visualization. Ensure that the aws_rds_instances table is included in your AWS source configuration. This post will be using our most popular data destination, PostgreSQL, for all our example queries.
Extracting Processor Features
To start, you need to check the RDS instances you have and select a specific one by its ARN (Amazon Resource Name). The following query will list your RDS instances:
For demonstration purposes, we'll assume a simplified result set. In reality, you'll get more columns, but this example focuses on key attributes:
Finding Hourly Costs
To find the hourly costs for a specific RDS instance, you will use its ARN in the following query. This query compares the specific values of the chosen instance and checks the price of other node types with the same vCPU. This query uses the following formula to calculate your vCPU :
coreCount * threadsPerCore = vCPU
This calculation allows you to match the vCPU values across different tables for comparison. Note that this calculation has already been performed in the query below.
This query calculates the virtual CPU (vCPU) for a specific RDS instance based on the provided ARN. It retrieves the coreCount and threadsPerCore values from the processor_features field and calculates the vCPU. The query then joins this data with the AWS pricing information to find the hourly costs for similar vCPU configurations in other instance types. Let's break it down:
Detailed Explanation of Specific Clauses
- RDS Service Codes:
Theservicecodefor Amazon RDS is used to identify the specific service (in this case, Amazon RDS) within the AWS pricing data. This ensures that only pricing information related to RDS instances is retrieved. - Pricing Type is OnDemand:
On-Demand pricing refers to a pay-as-you-go model where you are charged for compute capacity by the hour or second with no long-term commitments or upfront payments. This ensures that the query retrieves only On-Demand pricing information, which is relevant for users who want to know the cost of running an instance without any reserved or spot pricing considerations. - Pricing Unit is in Hours:
This ensures that the retrieved pricing information is based on an hourly rate, which is useful for calculating the cost of running an RDS instance on a per-hour basis.
Example Query Results
Here is an example of the query results:
The results show various instance types with the same vCPU configuration, allowing you to compare their hourly costs directly. Here’s a breakdown of what each column represents:
- sku: The Stock Keeping Unit (SKU) identifying the specific product.
- instance_type: The type of the instance (e.g.,
db.c6gd.2xlarge,db.m2.4xlarge). - vcpu: The number of virtual CPUs.
- region: The AWS region where the instance is located.
- memory: The amount of memory allocated to the instance.
- storage: The storage configuration of the instance.
- network_performance: The network performance level of the instance.
- operation: The specific operation or lifecycle stage (e.g.,
CreateDBInstance). - usagetype: The usage type, which often includes the billing category.
- engine_code: The code representing the database engine.
- database_engine: The type of database engine running on the instance (e.g., PostgreSQL, MySQL).
- deployment_option: The deployment configuration (e.g., Single-AZ, Multi-AZ).
- normalization_size_factor: A factor used for normalizing instance sizes.
- price_per_unit_usd: The hourly cost of running the instance.
- price_description: A detailed description of the pricing.
- unit: The unit of time for the pricing, typically hours (Hrs).
How to Use This Information
This information lets you make informed decisions about which instance types offer the best value for your specific requirements. Here are some ways you can use this data:
- Cost Optimization: Compare the hourly costs of different instance types with the same vCPU to find more cost-effective options.
- Performance Analysis: Evaluate other features such as memory, storage, and network performance to ensure that you choose instances that meet your performance requirements.
- Deployment Decisions: Consider the deployment options (e.g., Single-AZ vs. Multi-AZ) and how they affect both cost and availability.
Summary
By using CloudQuery to export your AWS data to a PostgreSQL database, you can efficiently check the cost implications of different RDS instance configurations. This approach allows you to compare pricing, optimize your resource allocation, and make better decisions for your AWS environment.
If you want to gain immediate insights into your AWS environment, try CloudQuery for free or connect with our engineering team for further assistance.
Want help getting started? Join the CloudQuery community to connect with other users and experts, or message our team directly here if you have any questions.
Try CloudQuery yourself
Self-hosted, open source, and free to start. Or schedule a demo to see the managed version.


