

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

# 版本：2024 年 2 月 22 日 Elastic Beanstalk Amazon Linux 2023 平台更新
<a name="release-2024-02-22-al2023"></a>

此版本為以 Amazon Linux 2023 為基礎的 AWS Elastic Beanstalk 平台提供了新版本。此版本內含安全性更新，它還包括 AMI、Docker、ECS 型 Docker、Corretto、Tomcat 和 PHP 更新。

**版本日期：**2024 年 2 月 22 日

## 變更
<a name="release-2024-02-22-al2023.changes"></a>

下表列出此版本中包含的變更。

**備註**  
這些版本備註著重於目前支援平台分支的變更。如需 Elastic Beanstalk 淘汰 (已取代) 平台分支的完整版本資訊，請參閱 *AWS Elastic Beanstalk 平台*指南中的[排定淘汰的 Elastic Beanstalk 平台版本](https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-retiring.html)。
請注意，發佈這些版本備註時，新平台版本可能尚未在所有 Elastic Beanstalk 支援的 AWS 區域中提供。發行可能需要幾個小時才能完成。


<table>
<thead>
  <tr><th><b>類別</b></th><th><b>描述</b></th></tr>
</thead>
<tbody>
  <tr><td><b>安全性更新</b></td><td>已將 2<b>024 年 2 月 19</b> 日或之前在 <a href="https://alas.aws.amazon.com/alas2023.html">Amazon Linux 安全中心</a>發佈的所有安全性更新，套用至所有 AL2023 平台。<br /> </td></tr>
  <tr><td><b>跨平台更新</b></td><td>執行下列跨平台更新：
<table>
<thead>
  <tr><th><b>元件</b></th><th><b>更新</b></th></tr>
</thead>
<tbody>
  <tr><td><b>AMI</b></td><td>將基本 AMI 更新至 2023.3.20240219 版。</td></tr>
  <tr><td><b>所有平台</b></td><td>此版本解決 System Security Services 協助程式 (<a href="https://github.com/SSSD/sssd">SSSD</a>) 在 AL2023 EC2 執行個體上因 <code>/var/log/sssd</code>目錄中缺少日誌檔案而無法啟動的問題。我們更新了平台邏輯，以防止刪除目錄。</td></tr>
</tbody>
</table>
</td></tr>
  <tr><td><b>平台特定更新</b></td><td>執行下列平台特定更新：
<table>
<thead>
  <tr><th><b>平台</b></th><th><b>更新</b></th></tr>
</thead>
<tbody>
  <tr><td><b>Docker</b></td><td><b>ECS Docker 平台分支</b><ul><li> 將 Amazon ECS 代理程式更新至 <b>1.81.0</b> 版。 </li></ul><br /><b>Docker 平台分支</b><ul><li> 將 Docker Compose 更新至 <a href="https://docs.docker.com/compose/release-notes/#2246">2.24.6</a> 版。 </li></ul><br /> <b>此版本對 Docker 平台分支進行的其他變更</b> <ul><li> 此版本解決建置快取跨多個部署擴展至相同 EC2 執行個體的問題。為了提供此解決方案，它新增了明確的步驟，以在部署應用程式後刪除 Docker 建置快取。 <br />這些變更不適用於 ECS Docker 平台。 </li></ul></td></tr>
  <tr><td><b>Corretto</b></td><td><b>語言執行時間更新</b><ul><li> 已將 Corretto 21 更新至 <a href="https://github.com/corretto/corretto-21/blob/develop/CHANGELOG.md">21.0.2.14.1</a> 版。 </li><li> 已將 Corretto 17 更新至 <a href="https://github.com/corretto/corretto-17/blob/develop/CHANGELOG.md">17.0.10.8.1</a> 版。 </li></ul><br />這兩種語言更新都是安全性版本。<br /><b>工具更新</b><ul><li> Gradle 已更新至 8.6 版。 </li></ul></td></tr>
  <tr><td><b>Tomcat</b></td><td><b>Tomcat 9 平台分支</b><ul><li> 將 Tomcat 9 更新至 <b>9.0.83 </b>版。如需詳細資訊，請參閱 <a href="https://tomcat.apache.org/">Tomcat 變更日誌</a>。 </li><li> 已將 Corretto 17 更新至 <a href="https://github.com/corretto/corretto-17/blob/develop/CHANGELOG.md">17.0.10.8.1</a> 版。 </li></ul><br /><b>Tomcat 10 平台分支</b><ul><li> 將 Tomcat 10 更新至 <b>10.1.19</b> 版。如需詳細資訊，請參閱 <a href="https://tomcat.apache.org/">Tomcat 變更日誌</a>。 </li><li> 已將 Corretto 17 更新至 <a href="https://github.com/corretto/corretto-17/blob/develop/CHANGELOG.md">17.0.10.8.1</a> 版。 </li></ul><br /><br /><b>Corretto 17</b> 語言執行時間更新是安全性版本。</td></tr>
  <tr><td><b>PHP</b></td><td><b>語言執行時間更新</b><ul><li> 將 PHP 8.1 版本更新至 <a href="https://www.php.net/releases/8_1_27.php">8.1.27</a>。 </li><li> 將 PHP 8.2 版本更新至 <a href="https://www.php.net/releases/8_2_15.php">8.2.15</a>。 </li></ul><br /> <b>此版本對 PHP 平台分支的其他變更</b> <ul><li> 此平台版本會將 <b>Composer</b> 更新至 <a href="https://github.com/composer/composer/releases/tag/2.7.1">2.7.1</a> 版。 </li><li> 此平台版本會將修補程式套用至 <a href="https://cve.org/CVERecord?id=CVE-2024-24821">CVE-2024-24821</a>。Composer <a href="https://github.com/composer/composer/releases/tag/2.7.0">2.7.0</a> 版推出此修補程式。 </li><li> 從此版本開始，Composer <code>install</code>命令現在會以 <b>webapp</b> 使用者身分執行，而不是以<b>根</b>使用者身分執行。 </li><li> 此版本會將預設 Composer 快取目錄從 <code>/root</code>變更為 <code>/home/webapp/.cache/composer/</code>。 </li><li> 從此版本開始，環境<a href="https://getcomposer.org/doc/03-cli.md#composer-home">https://getcomposer.org/doc/03-cli.md#composer-home</a>變數<code>/root</code>預設不會再設定為 。  從此版本開始，如果<code>COMPOSER_HOME</code>環境變數設定為 ，Composer <code>install</code>命令將會失敗<code>/root</code>。如果您有設定此變數的自訂組態，您可能需要更新它。如需詳細資訊，請參閱 <i>AWS Elastic Beanstalk 平台</i>指南中的<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/php-configuration-composerupdate.html">更新 Composer</a>。  </li></ul></td></tr>
  <tr><td><b>Python</b></td><td>針對 Python 3.9 和 Python 3.11 平台分支，Pipenv 已更新至 <b>2023.12.1</b> 版。如需詳細資訊，請參閱 Pipenv <a href="https://github.com/pypa/pipenv/releases">發行版本和版本歷史記錄</a>。</td></tr>
</tbody>
</table>
</td></tr>
</tbody>
</table>


## 新的平台版本
<a name="release-2024-02-22-al2023.platforms"></a>

**備註**  
下表列出每個平台的所有*支援*平台分支，包括 Amazon Linux 2。此版本中僅更新 Amazon Linux 2023 平台分支。
下表*僅列出支援的*平台分支。它們不會列出排程淘汰 （已棄用） 的平台分支。如需 Elastic Beanstalk *淘汰* （已棄用） 平台分支的完整版本資訊，請參閱《 平台指南》中的[排定淘汰的 Elastic Beanstalk 平台版本](https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-retiring.html)。 *AWS Elastic Beanstalk *

**Topics**
+ [Docker](#release-2024-02-22-al2023.platforms.docker)
+ [Go](#release-2024-02-22-al2023.platforms.go)
+ [Java SE](#release-2024-02-22-al2023.platforms.javase)
+ [Tomcat](#release-2024-02-22-al2023.platforms.java)
+ [Linux 上的 .NET Core](#release-2024-02-22-al2023.platforms.dotnetlinux)
+ [Node.js](#release-2024-02-22-al2023.platforms.nodejs)
+ [PHP](#release-2024-02-22-al2023.platforms.PHP)
+ [Python](#release-2024-02-22-al2023.platforms.python)
+ [Ruby](#release-2024-02-22-al2023.platforms.ruby)

### Docker
<a name="release-2024-02-22-al2023.platforms.docker"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  ECS 代理程式  |  Docker  |  Docker Compose  |  代理伺服器  | 
| --- | --- | --- | --- | --- | --- | 
|  ** Docker AL2023 4.2.2 版** <br /> * 64bit Amazon Linux 2023 v4.2.2 running Docker *  | 2023.3.20240219 |  | 24.0.5-1 | 2.24.6 | nginx 1.24.0 | 
|  ** ECS AL2023 4.0.5 版** <br /> * 64bit Amazon Linux 2023 v4.0.5 running ECS *  | 2023.3.20240219 | 1.81.0 |  |  |  | 
|  ** Docker AL2 3.7.1 版** <br /> * 64bit Amazon Linux 2 v3.7.1 running Docker *  | 2.0.20240124 |  | 20.10.25-1 | 2.24.3 | nginx 1.22.1 | 
|  ** ECS AL2 3.2.17 版** <br /> * 64bit Amazon Linux 2 v3.2.17 running ECS *  | 2.0.20240124 | 1.80.0 |  |  |  | 

### Go
<a name="release-2024-02-22-al2023.platforms.go"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  AWS X-Ray  |  代理伺服器  | 
| --- | --- | --- | --- | --- | 
|  ** Go 1 AL2023 4.0.4 版** <br /> * 64bit Amazon Linux 2023 v4.0.4 running Go 1 *  | 2023.3.20240219 | Go 1.20.12 | 3.2.0 | nginx 1.24.0 | 
|  ** Go 1 AL2 3.8.5 版** <br /> * 64bit Amazon Linux 2 v3.8.5 running Go 1 *  | 2.0.20240124 | Go 1.21.6 | 3.2.0 | nginx 1.22.1 | 

### Java SE
<a name="release-2024-02-22-al2023.platforms.javase"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  工具  |  AWS X-Ray  |  代理伺服器  | 
| --- | --- | --- | --- | --- | --- | 
|  ** Corretto 21 AL2023 4.2.1 版** <br /> * 64bit Amazon Linux 2023 v4.2.1 running Corretto 21 *  | 2023.3.20240219 | Corretto 21.0.2.14.1 | Ant 1.10.12、Gradle 8.6、Maven 3.8.4 | 3.2.0 | nginx 1.24.0 | 
|  ** Corretto 17 AL2023 4.2.1 版** <br /> * 64bit Amazon Linux 2023 v4.2.1 running Corretto 17 *  | 2023.3.20240219 | Corretto 17.0.10.8.1 | Ant 1.10.12、Gradle 8.6、Maven 3.8.4 | 3.2.0 | nginx 1.24.0 | 
|  ** Corretto 11 AL2023 4.2.1 版** <br /> * 64bit Amazon Linux 2023 v4.2.1 running Corretto 11 *  | 2023.3.20240219 | Corretto 11.0.22.7.1 | Ant 1.10.12、Gradle 8.6、Maven 3.8.4 | 3.2.0 | nginx 1.24.0 | 
|  ** Corretto 8 AL2023 4.2.1 版** <br /> * 64bit Amazon Linux 2023 v4.2.1 running Corretto 8 *  | 2023.3.20240219 | Corretto 8.402.08.1 | Ant 1.10.12、Gradle 8.6、Maven 3.8.4 | 3.2.0 | nginx 1.24.0 | 
|  ** Corretto 17 3.6.3 版** <br /> * 64bit Amazon Linux 2 v3.6.3 running Corretto 17 *  | 2.0.20240124 | Corretto 17.0.10.7.1 | Ant 1.10.14、Gradle 8.5、Maven 3.9.6 | 3.2.0 | nginx 1.22.1 | 
|  ** Corretto 11 3.6.3 版** <br /> * 64bit Amazon Linux 2 v3.6.3 running Corretto 11 *  | 2.0.20240124 | Corretto 11.0.22.7.1 | Ant 1.10.14、Gradle 8.5、Maven 3.9.6 | 3.2.0 | nginx 1.22.1 | 
|  ** Corretto 8 3.6.3 版** <br /> * 64bit Amazon Linux 2 v3.6.3 running Corretto 8 *  | 2.0.20240124 | Corretto 8.402.06.1 | Ant 1.10.14、Gradle 8.5、Maven 3.9.6 | 3.2.0 | nginx 1.22.1 | 

### Tomcat
<a name="release-2024-02-22-al2023.platforms.java"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  AWS X-Ray  |  應用程式伺服器  |  代理伺服器  | 
| --- | --- | --- | --- | --- | --- | 
|  ** Corretto 17 with Tomcat 10 AL2023 5.1.4 版** <br /> * 64bit Amazon Linux 2023 v5.1.4 running Tomcat 10 Corretto 17 *  | 2023.3.20240219 | Corretto 17.0.10.8.1 | 3.2.0 | Tomcat 10.1.19 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** Corretto 17 with Tomcat 9 AL2023 5.1.4 版** <br /> * 64bit Amazon Linux 2023 v5.1.4 running Tomcat 9 Corretto 17 *  | 2023.3.20240219 | Corretto 17.0.10.8.1 | 3.2.0 | Tomcat 9.0.83 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** Corretto 11 with Tomcat 9 AL2023 5.1.4 版** <br /> * 64bit Amazon Linux 2023 v5.1.4 running Tomcat 9 Corretto 11 *  | 2023.3.20240219 | Corretto 11.0.22.7.1 | 3.2.0 | Tomcat 9.0.83 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** Corretto 8 with Tomcat 9 AL2 4.4.0 版** <br /> * 64bit Amazon Linux 2 v4.4.0 running Tomcat 9 Corretto 8 *  | 2.0.20240124 | Corretto 8.402.08.1 | 3.2.0 | Tomcat 9.0.82 | nginx 1.22.1 (預設)，Apache 2.4.58 | 

### Linux 上的 .NET Core
<a name="release-2024-02-22-al2023.platforms.dotnetlinux"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  架構  |  代理伺服器  |  AMI  |  AWS X-Ray  | 
| --- | --- | --- | --- | --- | 
|  ** .NET 6 on AL2023 3.0.4 版** <br /> * 64bit Amazon Linux 2023 v3.0.4 running .NET 6 *  | .NET 6.0.26，支援 6.0.26 | nginx 1.24.0 | 2023.3.20240219 | 3.2.0 | 
|  ** .NET Core on AL2 2.6.4 版** <br /> * 64bit Amazon Linux 2 v2.6.4 running .NET Core *  | .NET 6.0.26，支援 6.0.26 | nginx 1.22.1 | 2.0.20240124 | 3.2.0 | 

### Node.js
<a name="release-2024-02-22-al2023.platforms.nodejs"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  Node.js 版本 (npm 版本)  |  代理伺服器  |  Git  |  AWS X-Ray  | 
| --- | --- | --- | --- | --- | --- | 
|  ** Node.js 20 AL2023 6.1.1 版** <br /> * 64bit Amazon Linux 2023 v6.1.1 running Node.js 20 *  | 2023.3.20240219 | 20.10.0 (10.2.3)<br /> 預設版本：20.10.0 | nginx 1.24.0 (預設)，Apache 2.4.58 | 2.40.1 | 3.2.0 | 
|  ** Node.js 18 AL2023 6.1.1 版** <br /> * 64bit Amazon Linux 2023 v6.1.1 running Node.js 18 *  | 2023.3.20240219 | 18.18.2 (9.8.1)<br /> 預設版本：18.18.2 | nginx 1.24.0 (預設)，Apache 2.4.58 | 2.40.1 | 3.2.0 | 
|  ** Node.js 18 AL2 5.8.10 版** <br /> * 64bit Amazon Linux 2 v5.8.10 running Node.js 18 *  | 2.0.20240124 | 18.19.0 (10.2.3)、18.18.2 (9.8.1)、18.18.1 (9.8.1)、18.18.0 (9.8.1)、18.17.1 (9.6.7)、18.17.0 (9.6.7)、18.16.1 (9.5.1)、18.16.0 (9.5.1)、18.15.0 (9.5.0)、18.14.2 (9.5.0)、18.14.1 (9.3.1)、18.14.0 (9.3.1)、18.13.0 (8.19.3)、18.12.1 (8.19.2)、18.12.0 (8.19.2)、18.11.0 (8.19.2)、18.10.0 (8.19.2)、18.9.1 (8.19.1)、18.9.0 (8.19.1)、18.8.0 (8.18.0)、18.7.0 (8.15.0)、18.6.0 (8.13.2)、18.5.0 (8.12.1)、18.4.0 (8.12.1)、18.3.0 (8.11.0)、18.2.0 (8.9.0)、18.1.0 (8.8.0)、18.0.0 (8.6.0)<br /> 預設版本：18.19.0 | nginx 1.22.1 (預設)，Apache 2.4.58 | 2.40.1 | 3.2.0 | 

### PHP
<a name="release-2024-02-22-al2023.platforms.PHP"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  Composer  |  代理伺服器  | 
| --- | --- | --- | --- | --- | 
|  ** PHP 8.2 AL2023 4.1.0 版** <br /> * 64bit Amazon Linux 2023 v4.1.0 running PHP 8.2 *  | 2023.3.20240219 | PHP 8.2.15 | 2.7.1 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** PHP 8.1 AL2023 4.1.0 版** <br /> * 64bit Amazon Linux 2023 v4.1.0 running PHP 8.1 *  | 2023.3.20240219 | PHP 8.1.27 | 2.7.1 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** PHP 8.1 AL2 3.5.16 版** <br /> * 64bit Amazon Linux 2 v3.5.16 running PHP 8.1 *  | 2.0.20240124 | PHP 8.1.27 | 2.3.5 | nginx 1.22.1 (預設)，Apache 2.4.58 | 

### Python
<a name="release-2024-02-22-al2023.platforms.python"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  套件管理工具  |  Packager  |  meld3  |  AWS X-Ray  |  代理伺服器  | 
| --- | --- | --- | --- | --- | --- | --- | --- | 
|  ** Python 3.11 AL2023 4.0.9 版** <br /> * 64bit Amazon Linux 2023 v4.0.9 running Python 3.11 *  | 2023.3.20240219 | Python 3.11.6 | pipenv 2023.12.1 |  |  | 3.2.0 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** Python 3.9 AL2023 4.0.9 版** <br /> * 64bit Amazon Linux 2023 v4.0.9 running Python 3.9 *  | 2023.3.20240219 | Python 3.9.16 | pipenv 2023.12.1 |  |  | 3.2.0 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** Python 3.8 AL2 3.5.11 版** <br /> * 64bit Amazon Linux 2 v3.5.11 running Python 3.8 *  | 2.0.20240124 | Python 3.8.16 | pipenv 2023.11.17 |  |  | 3.2.0 | nginx 1.22.1 (預設)，Apache 2.4.58 | 

### Ruby
<a name="release-2024-02-22-al2023.platforms.ruby"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  套件管理工具  |  應用程式伺服器  |  AWS X-Ray  |  代理伺服器  | 
| --- | --- | --- | --- | --- | --- | --- | 
|  ** Ruby 3.2 AL2023 4.0.4 版** <br /> * 64bit Amazon Linux 2023 v4.0.4 running Ruby 3.2 *  | 2023.3.20240219 | Ruby 3.2.2 | RubyGems 3.4.10 | Puma 6.4.2 | 3.2.0 | nginx 1.24.0 | 