amazon-redshiftHow can I determine the price of Amazon Redshift?
The price of Amazon Redshift depends on the type of node you choose, the number of nodes, and the duration of the cluster. To determine the exact cost, you can use the Amazon Redshift pricing calculator.
For example, if you wanted to estimate the cost of a 3-node dc2.large cluster with a 1-year term, you could use the following code:
$ aws redshift get-cluster-price --cluster-type dc2.large --cluster-node-type 3 --term 1-year
The output of this code would be something like this:
{
"ClusterPrice": {
"RateCode": "R5D3XNETWXCYH3",
"StartTime": 1577750400.0,
"EndTime": 1609328000.0,
"CurrencyCode": "USD",
"Amount": 4.05
}
}
This output indicates that the cost of the 3-node dc2.large cluster with a 1-year term would be $4.05 per hour.
The code consists of the following parts:
aws redshift get-cluster-price
: This is the command used to get the price of a Redshift cluster.--cluster-type dc2.large
: This specifies the type of node for the cluster.--cluster-node-type 3
: This specifies the number of nodes for the cluster.--term 1-year
: This specifies the duration of the cluster.
For more information about Amazon Redshift pricing, please see the Amazon Redshift Pricing page.
More of Amazon Redshift
- How can I monitor Amazon RDS using Zabbix?
- How can I handle divide by zero errors when using Amazon Redshift?
- How do I use the NOW() function in Amazon Redshift?
- How do I use the Amazon Redshift YEAR function?
- How can I use Amazon Redshift to store and query NoSQL data?
- How do I create a table in Amazon RDS?
- How can I use Amazon Redshift and Power BI together to create data visualizations?
- How can I use the Amazon Redshift Java SDK?
- How do I use Amazon Redshift with YouTube?
- How do I use the CASE WHEN statement in Amazon Redshift?
See more codes...