

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

# 版本：Elastic Beanstalk 於 2024 年 1 月 25 日推出 Amazon Linux 2023 新平台版本和更新
<a name="release-2024-01-25-al2023"></a>

Elastic Beanstalk 為 Corretto 和 Node.js 發行新的 Amazon Linux 2023 平台分支。此版本也包含 Docker、ECS 型 Docker、Go、Corretto、Tomcat、.NET Core、Python 和 Ruby AL2023 平台的更新。它還提供 Puma 更新、AMI 更新和安全性更新。

**版本日期：**2024 年 1 月 25 日

## 變更
<a name="release-2024-01-25-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>將 <b>2024 年 1 月 22</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.20240122 版。</td></tr>
  <tr><td><b>CloudWatch</b></td><td>CloudWatch Agent 已更新至 1.300032.3 版。</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.80.0 </b>版。 </li></ul><br /><b>Docker 平台分支</b><ul><li> 將 Docker Compose 更新至 <a href="https://docs.docker.com/compose/release-notes/#2242">2.24.2</a> 版。 </li></ul><br /> <b>Docker 平台分支與 版本的其他變更</b> <ul><li> 這些變更不適用於 ECS Docker 平台。 </li><li> 此版本解決了 AL2023 Docker 平台上在輪換<code>/var/lib/docker/containers</code>目錄中的日誌檔案時產生容器日誌的問題。修正會將 Docker 協助程式組態檔案 <a href="https://docs.docker.com/config/containers/logging/local/">daemon.json</a> 新增至 Docker 平台分支。組態會導致使用 Docker 的內建日誌輪換機制，以防止日誌發生問題和備援。 </li><li> 此更新會導致日誌發佈至 S3 功能的行為變更，而 S3 功能是由 <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-elasticbeanstalkhostmanager">https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-elasticbeanstalkhostmanager</a> 命名空間的 <code>LogPublicationControl</code>選項所控制。隨著此版本中引入的更新， <code>/var/lib/docker/containers</code>目錄中的輪換日誌檔案將不再發佈至 S3 儲存貯體；不過， /<code>var/log/eb-docker/containers/eb-current-app</code> 目錄中的輪換日誌檔案將繼續發佈。 </li></ul></td></tr>
  <tr><td><b>Go</b></td><td>已將 Go 更新至 1.20.12 版。如需詳細資訊，請參閱 <a href="https://go.dev/doc/devel/release#go1.20.12">Go 程式設計語言版本歷史記錄中的 go1.20.12</a>。 <i></i><br />這是安全性版本更新。</td></tr>
  <tr><td><b>Corretto</b></td><td><b>**全新！**</b> — 推出在 AL2023<b>2023 上執行的新 Corretto</b> 21 平台分支：Corretto <a href="https://github.com/corretto/corretto-21/blob/develop/CHANGELOG.md#corretto-version-210211">21.0.2.13.1 </a>版。<br />語言執行期更新：<ul><li> 已將 Corretto 17 更新至 <a href="https://github.com/corretto/corretto-17/blob/develop/CHANGELOG.md">17.0.10.7.1</a> 版。 </li><li> 已將 Corretto 11 更新至 <a href="https://github.com/corretto/corretto-11/blob/develop/CHANGELOG.md">11.0.22.7.1</a> 版。 </li><li> 已將 Corretto 8 更新至 <a href="https://github.com/corretto/corretto-8/blob/develop/CHANGELOG.md">8.402.08.1</a> 版。 </li></ul><br />所有語言執行期更新皆為安全性版本。</td></tr>
  <tr><td><b>Tomcat</b></td><td><b>Tomcat 9 平台分支</b><ul><li> 已將 Corretto 17 更新至 <a href="https://github.com/corretto/corretto-17/blob/develop/CHANGELOG.md">17.0.10.7.1</a> 版。 </li><li> 已將 Corretto 11 更新至 <a href="https://github.com/corretto/corretto-11/blob/develop/CHANGELOG.md">11.0.22.7.1 </a>版。 </li></ul><br /><b>Tomcat 10 平台分支</b><ul><li> 已將 Corretto 17 更新至 <a href="https://github.com/corretto/corretto-17/blob/develop/CHANGELOG.md">17.0.10.7.1</a> 版。 </li></ul><br /><br />所有 Corretto 語言執行期更新皆為安全性版本。</td></tr>
  <tr><td><b>.NET Core</b></td><td>已更新 .NET Core 至 <a href="https://github.com/dotnet/core/blob/main/release-notes/6.0/6.0.26/6.0.26.md">6.0.26</a> 版。<br />這是安全性版本更新。</td></tr>
  <tr><td><b>Node.js</b></td><td><b>**全新！**</b> — 推出在 AL2<b>023 上執行的新 Node.js</b> 20 平台分支：Node.js <a href="https://nodejs.org/en/blog/release/v20.10.0">20.10.0 版。</a> AL2023<br />如需最新版本的文件，請參閱 <a href="https://nodejs.org/docs/latest-v20.x/api/documentation.html">Node.js v20.x 文件。</a> <ul><li> 如果您從先前的 Node.js 平台分支遷移到 <i>AL2023</i> Node.js 20 平台分支，例如 <i>AL2023 Node.js 18</i>，如果您使用呼叫 的自訂部署指令碼，則部署可能會失敗<code>npx</code>。<i> </i>如需詳細資訊，請展開此資料表後面的 <a href="#note-npx">AL2023 Node.js 20 </a> 備註。 </li><li> 自 2024 年 3 月 26 日發行以來的 AL2023 <a href="release-2024-03-26-al2023.md">版本：2024 年 3 月 26 日 Elastic Beanstalk Amazon Linux 2023 平台更新</a>平台更新包含修正此問題的符號連結。 </li></ul> </td></tr>
  <tr><td><b>Python</b></td><td>針對 Python 3.9 和 Python 3.11 平台分支，Pipenv 已更新至 <b>2023.11.17</b> 版。如需詳細資訊，請參閱 Pipenv <a href="https://github.com/pypa/pipenv/releases">發行版本和版本歷史記錄</a>。</td></tr>
  <tr><td><b>Ruby</b></td><td>將 Puma 更新至 <a href="https://github.com/puma/puma/releases/tag/v6.4.2">6.4.2</a> 版。</td></tr>
</tbody>
</table>
</td></tr>
</tbody>
</table>


### 注意：AL2023 Node.js 20 自訂部署指令碼和 `npx`
<a name="note-npx"></a>

如果您從先前的 Node.js 平台分支遷移到 *AL2023* Node.js 20 平台分支，例如 *AL2023 Node.js 18*，如果您使用呼叫 的自訂部署指令碼，則部署可能會失敗`npx`。 **這是因為 `npx`AL*AL2023* *Node.js 20* 平台上命令的預設名稱不同。此最新平台上的預設名稱為 `npx-20`，而不是 `npx`。

自 2024 年 3 月 26 日發行以來的 AL2023 [版本：2024 年 3 月 26 日 Elastic Beanstalk Amazon Linux 2023 平台更新](release-2024-03-26-al2023.md)平台更新包含修正此問題的符號連結。

在您能夠將環境更新至最新版本之前，以下兩個解決方法選項可避免自訂部署指令碼的部署問題。我們建議您使用第二個選項以獲得更多彈性，其使用符號連結。
+ *選項 1 –* 在指令碼`npx`中使用 `npx-20`而不是 。
+ *選項 2 * –** 新增預先建置[平台勾](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-linux-extend.html)點，以建立 `npx-20`的符號連結 （並繼續在指令碼中使用`npx`命令名稱）。

  下列範例指令碼會建立符號連結。將此指令碼檔案放在您應用程式的 `.platform/hooks/prebuild`目錄中，讓 Elastic Beanstalk 在部署的預先建置階段執行。

  如果無法在先前 Node.js 平台分支所使用的`npx`目錄中找到 ，此指令碼會建立所需`npx-20`命令的符號連結。在*預先建置*階段執行時，它會在剩餘的組態和部署步驟執行之前建立符號連結。因此`npx`，之後對 的任何呼叫都會導向此平台分支的 `npx-20`命令。

  ```
  #!/usr/bin/env bash
  
  if [ ! -f /usr/bin/npx ]; then
    ln -s /usr/bin/npx-20 /usr/bin/npx
  fi
  npx -v
  ```

## 新的平台版本
<a name="release-2024-01-25-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-01-25-al2023.platforms.docker)
+ [Go](#release-2024-01-25-al2023.platforms.go)
+ [Java SE](#release-2024-01-25-al2023.platforms.javase)
+ [Tomcat](#release-2024-01-25-al2023.platforms.java)
+ [Linux 上的 .NET Core](#release-2024-01-25-al2023.platforms.dotnetlinux)
+ [Node.js](#release-2024-01-25-al2023.platforms.nodejs)
+ [PHP](#release-2024-01-25-al2023.platforms.PHP)
+ [Python](#release-2024-01-25-al2023.platforms.python)
+ [Ruby](#release-2024-01-25-al2023.platforms.ruby)

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


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  ECS 代理程式  |  Docker  |  Docker Compose  |  代理伺服器  | 
| --- | --- | --- | --- | --- | --- | 
|  ** Docker AL2023 4.2.0 版** <br /> * 64bit Amazon Linux 2023 v4.2.0 running Docker *  | 2023.3.20240122 |  | 24.0.5-1 | 2.24.2 | nginx 1.24.0 | 
|  ** ECS AL2023 4.0.3 版** <br /> * 64bit Amazon Linux 2023 v4.0.3 running ECS *  | 2023.3.20240122 | 1.80.0 |  |  |  | 
|  ** Docker AL2 3.6.5 版** <br /> * 64bit Amazon Linux 2 v3.6.5 running Docker *  | 2.0.20231206 |  | 20.10.25-1 | 2.23.3 | nginx 1.22.1 | 
|  ** ECS AL2 3.2.15 版** <br /> * 64bit Amazon Linux 2 v3.2.15 running ECS *  | 2.0.20231206 | 1.79.1 |  |  |  | 

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


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  AWS X-Ray  |  代理伺服器  | 
| --- | --- | --- | --- | --- | 
|  ** Go 1 AL2023 4.0.3 版** <br /> * 64bit Amazon Linux 2023 v4.0.3 running Go 1 *  | 2023.3.20240122 | Go 1.20.12 | 3.2.0 | nginx 1.24.0 | 
|  ** Go 1 AL2 3.8.4 版** <br /> * 64bit Amazon Linux 2 v3.8.4 running Go 1 *  | 2.0.20231206 | Go 1.21.5 | 3.2.0 | nginx 1.22.1 | 

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


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  工具  |  AWS X-Ray  |  代理伺服器  | 
| --- | --- | --- | --- | --- | --- | 
|  ** Corretto 21 AL2023 4.2.0 版** <br /> * 64bit Amazon Linux 2023 v4.2.0 running Corretto 21 *  | 2023.3.20240122 | Corretto 21.0.2.13.1 | Ant 1.10.12、Gradle 8.5、Maven 3.8.4 | 3.2.0 | nginx 1.24.0 | 
|  ** Corretto 17 AL2023 4.2.0 版** <br /> * 64bit Amazon Linux 2023 v4.2.0 running Corretto 17 *  | 2023.3.20240122 | Corretto 17.0.10.7.1 | Ant 1.10.12、Gradle 8.5、Maven 3.8.4 | 3.2.0 | nginx 1.24.0 | 
|  ** Corretto 11 AL2023 4.2.0 版** <br /> * 64bit Amazon Linux 2023 v4.2.0 running Corretto 11 *  | 2023.3.20240122 | Corretto 11.0.22.7.1 | Ant 1.10.12、Gradle 8.5、Maven 3.8.4 | 3.2.0 | nginx 1.24.0 | 
|  ** Corretto 8 AL2023 4.2.0 版** <br /> * 64bit Amazon Linux 2023 v4.2.0 running Corretto 8 *  | 2023.3.20240122 | Corretto 8.402.08.1 | Ant 1.10.12、Gradle 8.5、Maven 3.8.4 | 3.2.0 | nginx 1.24.0 | 
|  ** Corretto 17 3.6.2 版** <br /> * 64bit Amazon Linux 2 v3.6.2 running Corretto 17 *  | 2.0.20231206 | Corretto 17.0.9.8.1 | Ant 1.10.14、Gradle 8.5、Maven 3.9.6 | 3.2.0 | nginx 1.22.1 | 
|  ** Corretto 11 3.6.2 版** <br /> * 64bit Amazon Linux 2 v3.6.2 running Corretto 11 *  | 2.0.20231206 | Corretto 11.0.21.9.1 | Ant 1.10.14、Gradle 8.5、Maven 3.9.6 | 3.2.0 | nginx 1.22.1 | 
|  ** Corretto 8 3.6.2 版** <br /> * 64bit Amazon Linux 2 v3.6.2 running Corretto 8 *  | 2.0.20231206 | Corretto 8.392.08.1 | Ant 1.10.14、Gradle 8.5、Maven 3.9.6 | 3.2.0 | nginx 1.22.1 | 

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


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  AWS X-Ray  |  應用程式伺服器  |  代理伺服器  | 
| --- | --- | --- | --- | --- | --- | 
|  ** Corretto 17 with Tomcat 10 AL2023 5.1.3 版** <br /> * 64bit Amazon Linux 2023 v5.1.3 running Tomcat 10 Corretto 17 *  | 2023.3.20240122 | Corretto 17.0.10.7.1 | 3.2.0 | Tomcat 10.1.18 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** Corretto 17 with Tomcat 9 AL2023 5.1.3 版** <br /> * 64bit Amazon Linux 2023 v5.1.3 running Tomcat 9 Corretto 17 *  | 2023.3.20240122 | Corretto 17.0.10.7.1 | 3.2.0 | Tomcat 9.0.82 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** Corretto 11 with Tomcat 9 AL2023 5.1.3 版** <br /> * 64bit Amazon Linux 2023 v5.1.3 running Tomcat 9 Corretto 11 *  | 2023.3.20240122 | Corretto 11.0.22.7.1 | 3.2.0 | Tomcat 9.0.82 | nginx 1.24.0 (預設)，Apache 2.4.58 | 

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


****  

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

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


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  Node.js 版本 (npm 版本)  |  代理伺服器  |  Git  |  AWS X-Ray  | 
| --- | --- | --- | --- | --- | --- | 
|  ** Node.js 20 AL2023 6.1.0 版** <br /> * 64bit Amazon Linux 2023 v6.1.0 running Node.js 20 *  | 2023.3.20240122 | 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.0 版** <br /> * 64bit Amazon Linux 2023 v6.1.0 running Node.js 18 *  | 2023.3.20240122 | 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.9 版** <br /> * 64bit Amazon Linux 2 v5.8.9 running Node.js 18 *  | 2.0.20231206 | 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-01-25-al2023.platforms.PHP"></a>


****  

|  平台版本和*解決方案堆疊名稱*   |  AMI  |  語言  |  Composer  |  代理伺服器  | 
| --- | --- | --- | --- | --- | 
|  ** PHP 8.2 AL2023 4.0.5 版** <br /> * 64bit Amazon Linux 2023 v4.0.5 running PHP 8.2 *  | 2023.3.20240122 | PHP 8.2.9 | 2.5.8 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** PHP 8.1 AL2023 4.0.5 版** <br /> * 64bit Amazon Linux 2023 v4.0.5 running PHP 8.1 *  | 2023.3.20240122 | PHP 8.1.23 | 2.5.7 | nginx 1.24.0 (預設)，Apache 2.4.58 | 
|  ** PHP 8.1 AL2 3.5.15 版** <br /> * 64bit Amazon Linux 2 v3.5.15 running PHP 8.1 *  | 2.0.20231206 | PHP 8.1.26 | 2.3.5 | nginx 1.22.1 (預設)，Apache 2.4.58 | 

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


****  

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

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


****  

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