01
First, run describe-reserved-nodes command (OSX/Linux/UNIX) using the identifier of the Redshift RN that you want to renew as parameter (see Audit section part II to identify the right resource) to describe the node offering ID. This ID will be used later as filter parameter to find the offering(s) that match the existing node configuration attributes:
aws redshift describe-reserved-nodes
--region us-east-1
--reserved-node-id 2c45ab51-bc51-4d65-b35c-a4a3e931e3a0
--query 'ReservedNodes[*].ReservedNodeOfferingId'
02
The command output should return the selected RN offering ID:
[
"f47716e3-a84f-49fe-99c3-2a473e3efd9e"
]
03
Before you repurchase your Redshift Reserved Node run describe-reserved-node-offerings command (OSX/Linux/UNIX) to get the pricing details and information about available Redshift RN offerings. Use the ID string returned at the previous step as identifier to match the specifications of the RN that you want to renew (repurchase):
aws redshift describe-reserved-node-offerings
--region us-east-1
--reserved-node-offering-id f47716e3-a84f-49fe-99c3-2a473e3efd9e
04
The command output should return the requested offering(s) information:
{
"ReservedNodeOfferings": [
{
"OfferingType": "Partial Upfront",
"FixedPrice": 3000.0,
"NodeType": "ds1.xlarge",
"UsagePrice": 0.0,
"RecurringCharges": [
{
"RecurringChargeAmount": 0.114,
"RecurringChargeFrequency": "Hourly"
}
],
"Duration": 31536000,
"ReservedNodeOfferingId":
"f47716e3-a84f-49fe-99c3-2a473e3efd9e",
"CurrencyCode": "USD"
}
]
}
05
Run purchase-reserved-nodes-offering command (OSX/Linux/UNIX) to purchase the Redshift Reserved Node based on the offering information returned at the previous step. The following command example purchase a reserved Redshift node using an offering identified by the ID f47716e3-a84f-49fe-99c3-2a473e3efd9e:
aws redshift purchase-reserved-node-offering
--reserved-node-offering-id f47716e3-a84f-49fe-99c3-2a473e3efd9e
--node-count 1
06
The command output should return the new AWS Redshift Reserved Node metadata:
{
"ReservedNode": {
"OfferingType": "Partial Upfront",
"FixedPrice": 3000.0,
"NodeType": "ds1.xlarge",
"ReservedNodeId": "2a473e33-bc01-4d65-b35d-a4a3e9320ec45",
"UsagePrice": 0.0,
"RecurringCharges": [
{
"RecurringChargeAmount": 0.114,
"RecurringChargeFrequency": "Hourly"
}
],
"NodeCount": 1,
"State": "payment-pending",
"StartTime": "2016-10-19T17:08:25.051Z",
"Duration": 31536000,
"ReservedNodeOfferingId": "f47716e3-a84f-49fe-99c3-2a473e3efd9e"
},
"ResponseMetadata": {
"RequestId": "16e3a7bf-2100-11e2-b605-2754d73960da"
}
}
07
Repeat steps no. 1 - 6 to renew (repurchase) other Redshift Reserved Nodes that are about to expire, available in the current region.
08
Change the AWS region by updating the --region command parameter value and repeat steps no. 1 - 7 to perform the entire process for other regions.