簡體   English   中英

有沒有辦法關閉並啟動帶有cli的AWS紅移群集?

[英]Is there a way to shutdown and start an AWS redshift cluster with the cli?

我只是提出一個紅移集群來開始開發工作,並且通常使用cron服務在工作時間之外關閉我的所有開發資源以節省資金。

當我瀏覽aws cli幫助時:

aws redshift help

我沒有看到任何停止或關閉我的測試集群的選項,就像我在控制台中一樣。

如果沒有辦法做到這一點,有人知道他們為什么不提供此功能嗎? 這些實例非常花錢,可以保持在線,我不想每天晚上都用手將它們關閉。

聽起來你正在尋找:

來自aws-cli aws redshift delete-cluster 文檔

如果要關閉群集並將其保留以備將來使用,請將SkipFinalClusterSnapshot設置為“false”,並為FinalClusterSnapshotIdentifier指定名稱。 您可以稍后還原此快照以繼續使用群集。 如果請求了最終的群集快照,則在拍攝快照時群集的狀態將為“最終快照”,然后在Amazon Redshift開始刪除群集時將其“刪除”。

示例用法,再次來自文檔:

# When shutting down at night...
aws redshift delete-cluster --cluster-identifier mycluster --final-cluster-snapshot-identifier my-snapshot-id

# When starting up in the morning...
aws redshift restore-from-cluster-snapshot --cluster-identifier mycluster --snapshot-identifier my-snapshot-id

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM