I want to shut down an AWS RedShift cluster through the command line, to avoid cluster charges in night time when no one use it.
I tried to search for the command, but didn't find it.
Anyone has idea about it?
I want to shut down an AWS RedShift cluster through the command line, to avoid cluster charges in night time when no one use it.
I tried to search for the command, but didn't find it.
Anyone has idea about it?
delete-clusterを探しているようですね。
最終スナップショットを取得する使用例:
aws redshift delete-cluster --cluster-identifier mycluster --final-cluster-snapshot-identifier myfinalsnapshot
このスナップショットをrestore-from-cluster-snapshotで使用して、クラスターを再度セットアップする必要がある場合に復元できます。
aws redshift restore-from-cluster-snapshot --cluster-identifier mycluster-clone --snapshot-identifier my-snapshot-id
これは、説明したように「シャットダウン」操作を実行する最もおおよその方法です。EC2 インスタンスのように RedShift を開始および停止することはできないため、代わりに破棄して再作成する必要があります。これにより、少なくともデータの操作を停止および開始できます。