日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

創(chuàng)建或更新鏡像

更新時(shí)間:

OOS常用運(yùn)維任務(wù)之創(chuàng)建或更新鏡像。

背景

在使用ECS時(shí),要時(shí)常地面臨更新軟件等情況,如運(yùn)行的后端服務(wù)版本更新,安全打補(bǔ)丁等,通過創(chuàng)建或更新鏡像可輕松搞定。當(dāng)前支持從已有的實(shí)例創(chuàng)建鏡像,或者更新鏡像。

操作步驟

  1. 登錄系統(tǒng)運(yùn)維管理管理控制臺(tái)

  2. 單擊常用運(yùn)維任務(wù)中的創(chuàng)建或更新鏡像image

  3. 單擊創(chuàng)建

  4. 可選擇從已有實(shí)例創(chuàng)建鏡像更新鏡像。本示例選擇從已有實(shí)例創(chuàng)建鏡像。

  5. 填寫新鏡像名稱。

  6. 執(zhí)行使用到的權(quán)限的來源可選擇當(dāng)前賬號(hào)的已有權(quán)限或者指定RAM角色,使用該角色的權(quán)限。

    本示例選擇指定RAM角色,使用該角色的權(quán)限,并選擇的角色為OOSServiceRole。如果您的賬號(hào)還沒有可選的OOSAssumeRole ,請(qǐng)參見為OOS服務(wù)設(shè)置RAM權(quán)限進(jìn)行設(shè)置。如果您已知曉如何為OOS服務(wù)設(shè)置RAM權(quán)限,也可直接單擊藍(lán)色字體的查看授權(quán)策略并前往RAM手動(dòng)授權(quán)策略快速完成RAM權(quán)限的設(shè)置,其中執(zhí)行所需的完整授權(quán)策略可參考下文JSON。image

    從已有實(shí)例創(chuàng)建鏡像的權(quán)限策略:

    {
      "Version": "1",
      "Statement": [
        {
          "Action": [
            "ecs:CreateImage",
            "ecs:DescribeImages",
            "ecs:ModifyImageSharePermission",
            "ecs:CopyImage",
            "ecs:RunCommand",
            "ecs:DescribeInvocationResults",
            "ecs:DescribeRegions",
            "ecs:DescribeInstances",
            "ecs:DescribeInvocations"
          ],
          "Resource": "*",
          "Effect": "Allow"
        },
        {
          "Action": [
            "ess:ModifyScalingConfiguration"
          ],
          "Resource": "*",
          "Effect": "Allow"
        },
        {
          "Action": "oos:*",
          "Resource": "*",
          "Effect": "Allow"
        },
        {
          "Action": "ram:PassRole",
          "Resource": "*",
          "Effect": "Allow",
          "Condition": {
            "StringEquals": {
              "acs:Service": "oos.aliyuncs.com"
            }
          }
        }
      ]
    }
    						

    更新鏡像的權(quán)限策略:

    {
      "Version": "1",
      "Statement": [
        {
          "Action": "oos:*",
          "Resource": "*",
          "Effect": "Allow"
        },
        {
          "Action": "ram:PassRole",
          "Resource": "*",
          "Effect": "Allow",
          "Condition": {
            "StringEquals": {
              "acs:Service": "oos.aliyuncs.com"
            }
          }
        },
        {
          "Action": [
            "ecs:RunCommand",
            "ecs:RunInstances",
            "ecs:StopInstance",
            "ecs:DescribeRegions",
            "ecs:DeleteInstance",
            "ecs:CreateImage",
            "ecs:DescribeImages",
            "ecs:ModifyImageSharePermission",
            "ecs:CopyImage",
            "ecs:RebootInstance",
            "ecs:DescribeInvocationResults",
            "ecs:InstallCloudAssistant",
            "ecs:DescribeCloudAssistantStatus",
            "ecs:DescribeInstances",
            "ecs:DescribeInvocations"
          ],
          "Resource": "*",
          "Effect": "Allow"
        },
        {
          "Action": [
            "ess:ModifyScalingConfiguration"
          ],
          "Resource": "*",
          "Effect": "Allow"
        }
      ]
    }
    						
  7. 單擊選擇實(shí)例。

  8. 單擊發(fā)送遠(yuǎn)程命令。

    本示例選擇Linux Shell

  9. 單擊創(chuàng)建

  10. 任務(wù)執(zhí)行管理中可查看剛剛創(chuàng)建的執(zhí)行,若創(chuàng)建執(zhí)行成功,且執(zhí)行狀態(tài)處于運(yùn)行中,則表示此時(shí)正在創(chuàng)建或者更新鏡像。image

  11. 如需更多了解執(zhí)行情況,您可單擊該執(zhí)行的詳情,查看執(zhí)行日志