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 do I use the Amazon Redshift YEAR function?
- How can I handle divide by zero errors when using Amazon Redshift?
- How do I use Amazon Redshift with YouTube?
- How can I use Amazon Redshift UNION to combine data from multiple tables?
- How do I use Amazon Redshift window functions?
- How do I set up Amazon RDS with read replicas?
- How do I set up Amazon RDS with Multi-AZ for high availability?
- How can I use Amazon Redshift to store and process unstructured data?
- How can I calculate the serverless pricing for Amazon Redshift?
See more codes...