<>
場(chǎng)景介紹
為了保證ECS實(shí)例的運(yùn)行環(huán)境始終是安全的,包括安裝最新補(bǔ)丁,或者更新所依賴的組件等。我們需要從一個(gè)源鏡像開(kāi)始逐步更新,最終生成一個(gè)新鏡像,然后用于測(cè)試和生產(chǎn)。每次更新鏡像時(shí)都需要用源鏡像創(chuàng)建實(shí)例,更新成功后還得釋放實(shí)例,很麻煩。
<>
解決方案
<>
用阿里云公共鏡像?centos_6_10_64_20G_alibase_20190326.vhd? 創(chuàng)建一臺(tái)實(shí)例。
<>
使用OOS提供的公共模板 ACS-ECS-UpdateImage 來(lái)快捷的更新此公共鏡像。
1.基本信息
2.設(shè)置參數(shù)
3.確認(rèn)創(chuàng)建
4.執(zhí)行成功,得到更新后的ImageId
<>
用更新后的鏡像創(chuàng)建一臺(tái)實(shí)例,由下圖可見(jiàn)鏡像更新成功。
<>
ACS-ECS-UpdateImage的主流程:
<>
總結(jié)
由以上舉例可見(jiàn),用OOS更新鏡像方便快捷,極大的節(jié)省了時(shí)間。另外OOS還提供了執(zhí)行克隆的功能,相同執(zhí)行不用再一次輸入?yún)?shù),直接克隆執(zhí)行即可。目前OOS運(yùn)維編排處于公測(cè)中歡迎試用。
<>
歡迎使用OOS
OOS管理控制臺(tái)的鏈接:?
https://home.console.aliyun.com/redirect.htm?productId=ecs&path=automation/region/
<https://yq.aliyun.com/go/articleRenderRedirect?url=https%3A%2F%2Fhome.console.aliyun.com%2Fredirect.htm%3FproductId%3Decs%26amp%3Bpath%3Dautomation%2Fregion%2F>
OOS幫助文檔的鏈接
<https://yq.aliyun.com/go/articleRenderRedirect?url=https%3A%2F%2Fhelp.aliyun.com%2Fproduct%2F119529.html>
OOS客戶支持釘釘群:23330931
系列文章
主題文章
阿里云重磅發(fā)布云上自動(dòng)化利器——運(yùn)維編排OOS <https://yq.aliyun.com/articles/708210>
最佳實(shí)踐
玩轉(zhuǎn)運(yùn)維編排服務(wù)的權(quán)限:Assume Role+Pass Role <https://yq.aliyun.com/articles/708218>
場(chǎng)景系列
運(yùn)維編排場(chǎng)景系列-----給ECS實(shí)例自動(dòng)打TAG <https://yq.aliyun.com/articles/708142>
運(yùn)維編排場(chǎng)景系列----從實(shí)例中拷貝文件到OSS <https://yq.aliyun.com/articles/708141>
運(yùn)維編排場(chǎng)景系列----給實(shí)例加到SLS機(jī)器組 <https://yq.aliyun.com/articles/708140>
運(yùn)維編排場(chǎng)景系列----檢測(cè)MFA功能狀態(tài) <https://yq.aliyun.com/articles/713756>
阿里云運(yùn)維編排新功能:一鍵批量克隆ECS <https://yq.aliyun.com/articles/713348>
熱門工具 換一換
