Redshift Serverless API reference to restore from Redshift Provisioned Cluster snapshot

0

I'm looking for the correct API reference to restore a provisioned cluster snapshot to a serverless namespace. I tested the following already with no success:

  1. redshift.restore_from_cluster_snapshot() - only works for restoring snapshots from cluster to cluster mode
  2. redshift-serverless.restore_from_snapshot() - only works for restoring snapshots from namespace to namespace mode The only way I was able to do was via console. Please advice. Regards
已提問 1 年前檢視次數 386 次
1 個回答
0

Hello,

In order to restore a provisioned cluster into a serverless workgroup using one of the language-specific Amazon Redshift APIs, please see the documentation on the RestoreFromClusterSnapshot API call for a list of supported languages and the API references for each.

One way to restore a provisioned cluster snapshot to a serverless namespace is using the following command in the AWS CLI (See API reference for the AWS CLI API call ):

aws redshift-serverless restore-from-snapshot \
--namespace-name '<namespace-identifier>' \
--snapshot-arn arn:aws:redshift:us-east-1:<account-id>:snapshot:<cluster-identifier>/<snapshot-identifier> \
--workgroup-name '<workgroup-identifier>'
AWS
已回答 1 年前
  • Hi Yolisa, thanks for the reply. I tested it already (as I mentioned). This API only identifies Redshift Serverless snapshots to be restored, which doesn't work for me since I need to restore a provisioned cluster snapshot into a namespace.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南