AWS OpsWorks 堆疊作業系統 - AWS OpsWorks

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

AWS OpsWorks 堆疊作業系統

重要

該 AWS OpsWorks Stacks 服務於 2024 年 5 月 26 日終止使用壽命,並已針對新客戶和現有客戶停用。我們強烈建議客戶盡快將其工作負載移轉至其他解決方案。如果您對移轉有任何疑問,請透過 AWS Re: post 或透過進AWS 階 Support 與 AWS Support 團隊聯絡。

AWS OpsWorks 堆棧支持幾個內置操作系統的 64 位版本,包括 Amazon 和 Ubuntu Linux 發行版和 Microsoft 視窗服務器。下列為一般注意事項:

  • 堆疊的執行個體可以執行 Linux 或 Windows。

    堆疊可以具備不同 Linux 發行版本或不同執行個體,但您不可以混合 Linux 和 Windows 執行個體。

  • 您可以使用自訂 AMI (Amazon 機器映像),但它們必須以本節主題中所述的其中一個 AWS OpsWorks 堆疊支援的 AMI 為基礎。雖然可以使用從自訂或社群所產生 AMI 建立而成的其他作業系統 (例如 CentOS 6.x) 建立或註冊執行個體,但並未正式受到支援。

  • 您可以手動啟動和停止執行個體,或讓 AWS OpsWorks Stacks 自動擴展執行個體的數目。

    您可以針對任何堆疊使用以時間為基礎的自動擴展;Linux 堆疊也可以使用以負載為基礎的擴展。

  • 除了使用堆 AWS OpsWorks 疊建立 Amazon EC2 執行個體之外,您也可以使用在堆 AWS OpsWorks 疊以外建立的 Linux 堆疊註冊執行個體。

    這包括在您自己的硬體上執行的 Amazon EC2 執行個體和執行個體。不過,它們必須執行其中一種支援的 Linux 發行版本。您無法註冊 Amazon EC2 或現場部署 Windows 執行個體。

您可以執行 AWS OpsWorks 堆疊 DescribeOperatingSystemsAPI 來傳回支援的作業系統清單及其支援的 Chef 版本。下面是使用 AWS CLI的範例命令。

aws opsworks describe-operating-systems

以下是回應範例。

{ "OperatingSystems": [ { "Name": "Amazon Linux", "Id": "Amazon Linux", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ], "ReportedName": "amazon", "ReportedVersion": "2014.03", "Supported": false }, { "Name": "Amazon Linux 2", "Id": "Amazon Linux 2", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" } ], "ReportedName": "amazon", "ReportedVersion": "2" }, { "Name": "Amazon Linux 2014.09", "Id": "Amazon Linux 2014.09", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ], "ReportedName": "amazon", "ReportedVersion": "2014.09", "Supported": false }, { "Name": "Amazon Linux 2015.03", "Id": "Amazon Linux 2015.03", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ], "ReportedName": "amazon", "ReportedVersion": "2015.03", "Supported": false }, { "Name": "Amazon Linux 2015.09", "Id": "Amazon Linux 2015.09", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ], "ReportedName": "amazon", "ReportedVersion": "2015.09", "Supported": false }, { "Name": "Amazon Linux 2016.03", "Id": "Amazon Linux 2016.03", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ], "ReportedName": "amazon", "ReportedVersion": "2016.03" }, { "Name": "Amazon Linux 2016.09", "Id": "Amazon Linux 2016.09", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ], "ReportedName": "amazon", "ReportedVersion": "2016.09" }, { "Name": "Amazon Linux 2017.03", "Id": "Amazon Linux 2017.03", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ], "ReportedName": "amazon", "ReportedVersion": "2017.03" }, { "Name": "Amazon Linux 2017.09", "Id": "Amazon Linux 2017.09", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ], "ReportedName": "amazon", "ReportedVersion": "2017.09" }, { "Name": "Amazon Linux 2018.03", "Id": "Amazon Linux 2018.03", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" } ], "ReportedName": "amazon", "ReportedVersion": "2018.03" }, { "Name": "CentOS Linux 7", "Id": "CentOS Linux 7", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" } ], "ReportedName": "CentOS Linux", "ReportedVersion": "7" }, { "Name": "Microsoft Windows Server 2012 R2 Base", "Id": "Microsoft Windows Server 2012 R2 Base", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2012 r2 standard", "Supported": false }, { "Name": "Microsoft Windows Server 2012 R2 with SQL Server Express", "Id": "Microsoft Windows Server 2012 R2 with SQL Server Express", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2012 r2 standard", "Supported": false }, { "Name": "Microsoft Windows Server 2012 R2 with SQL Server Standard", "Id": "Microsoft Windows Server 2012 R2 with SQL Server Standard", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2012 r2 standard", "Supported": false }, { "Name": "Microsoft Windows Server 2012 R2 with SQL Server Web", "Id": "Microsoft Windows Server 2012 R2 with SQL Server Web", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2012 r2 standard", "Supported": false }, { "Name": "Microsoft Windows Server 2019 Base", "Id": "Microsoft Windows Server 2019 Base", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2019 datacenter" }, { "Name": "Microsoft Windows Server 2019 with SQL Server Express", "Id": "Microsoft Windows Server 2019 with SQL Server Express", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2019 datacenter" }, { "Name": "Microsoft Windows Server 2019 with SQL Server Standard", "Id": "Microsoft Windows Server 2019 with SQL Server Standard", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2019 datacenter" }, { "Name": "Microsoft Windows Server 2019 with SQL Server Web", "Id": "Microsoft Windows Server 2019 with SQL Server Web", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2019 datacenter" }, { "Name": "Microsoft Windows Server 2022 Base", "Id": "Microsoft Windows Server 2022 Base", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2022 datacenter" }, { "Name": "Microsoft Windows Server 2022 with SQL Server Express", "Id": "Microsoft Windows Server 2022 with SQL Server Express", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2022 datacenter" }, { "Name": "Microsoft Windows Server 2022 with SQL Server Standard", "Id": "Microsoft Windows Server 2022 with SQL Server Standard", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2022 datacenter" }, { "Name": "Microsoft Windows Server 2022 with SQL Server Web", "Id": "Microsoft Windows Server 2022 with SQL Server Web", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ], "ReportedName": "microsoft windows server", "ReportedVersion": "2022 datacenter" }, { "Name": "Red Hat Enterprise Linux 7", "Id": "Red Hat Enterprise Linux 7", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" } ], "ReportedName": "Red Hat Enterprise Linux", "ReportedVersion": "7" }, { "Name": "Ubuntu 12.04 LTS", "Id": "Ubuntu 12.04 LTS", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ], "ReportedName": "ubuntu", "ReportedVersion": "12.04", "Supported": false }, { "Name": "Ubuntu 14.04 LTS", "Id": "Ubuntu 14.04 LTS", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" } ], "ReportedName": "ubuntu", "ReportedVersion": "14.04" }, { "Name": "Ubuntu 16.04 LTS", "Id": "Ubuntu 16.04 LTS", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" } ], "ReportedName": "ubuntu", "ReportedVersion": "16.04" }, { "Name": "Ubuntu 18.04 LTS", "Id": "Ubuntu 18.04 LTS", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" } ], "ReportedName": "ubuntu", "ReportedVersion": "18.04" }, { "Name": "Ubuntu 20.04 LTS", "Id": "Ubuntu 20.04 LTS", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" } ], "ReportedName": "ubuntu", "ReportedVersion": "20.04" }, { "Name": "Custom", "Id": "Custom", "Type": "Linux", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12" }, { "Name": "Chef", "Version": "11.10" }, { "Name": "Chef", "Version": "11.4" }, { "Name": "Chef", "Version": "0.9" } ] }, { "Name": "CustomWindows", "Id": "CustomWindows", "Type": "Windows", "ConfigurationManagers": [ { "Name": "Chef", "Version": "12.2" } ] } ] }