

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 发布：2021 年 5 月 3 日版 Elastic Beanstalk Amazon Linux 2 平台更新
<a name="release-2021-05-03-al2"></a>

此版本为基于 Amazon Linux 2 的 AWS Elastic Beanstalk 平台提供了新版本。此发行版包含了安全更新。它还包括 Docker、Go、Corretto、.NET Core、Node.js、PHP 和 Ruby 更新，以及一些平台弃用公告。

**发布日期：**2021 年 5 月 3 日

## 更改
<a name="release-2021-05-03-al2.changes"></a>

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

**注意**  
请注意，在发布这些发行说明时，新平台版本可能尚未在 Elastic Beanstalk AWS 支持的所有区域上市。发布可能需要几个小时才能完成。


| **类别** | **描述** | 
| --- | --- | 
| **组件** | **更新** | 
| --- | --- | 
| **平台** | **更新** | 
| --- | --- | 
|  **安全更新**  |  已将 **2021 年 4 月 21 日**或之前在 [Amazon Linux 安全中心](https://alas.aws.amazon.com/alas2.html)发布的所有安全更新应用于所有已发布的 Amazon Linux 2 平台。 **Corretto**、**Node.js**、**PHP** 和 **Ruby** 版本都是安全版本。有关更多信息，请参阅此表中的**特定于平台的更新**。  | 
|  **跨平台更新**  |  应用了这些跨平台更新： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/elasticbeanstalk/latest/relnotes/release-2021-05-03-al2.html)  | 
|  **平台弃用**  |  今天，我们宣布，由于语言运行时组件的所有者终止提供支持，多个基于 Amazon Linux 2 的平台分支机构将于 *2022 年 4 月 30 日停用*。*这些平台分支现在已弃用。*如果您目前使用的是任何一个即将停用的平台，我们强烈建议您开始计划从各个这些平台迁移到当前完全受支持的版本。 以下平台分支现在已弃用： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/elasticbeanstalk/latest/relnotes/release-2021-05-03-al2.html) 已弃用的平台分支未在 *AWS Elastic Beanstalk 平台指南*的[受支持平台](https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html)页面上列出。它们列在单独页面上，[即将停用平台版本](https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-retiring.html)。 有关平台弃用的更多信息，请参阅 *AWS Elastic Beanstalk 开发人员指南*中的 [Elastic Beanstalk 平台支持策略](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)。  | 
|  **特定于平台的更新**  |  应用这些特定于平台的更新： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/elasticbeanstalk/latest/relnotes/release-2021-05-03-al2.html)  | 
|  **AMI**  |  已将基本 AMI 更新为版本 2.0.20210421。  | 
|  **Docker**  |  已将 Docker 更新为版本 [20.10.4](https://docs.docker.com/engine/release-notes/#20104)。 已将 Docker Compose 更新为版本 [1.29.1](https://docs.docker.com/compose/release-notes/#1291)。  | 
|  **Go**  |  已将 Go 更新为版本 **1.16.3**。有关详细信息，请参阅 *Go 编程语言发布历史记录* 中的 [go1.16](https://golang.org/doc/devel/release.html#go1.16)。  | 
|  **Corretto**  |  已将 Corretto11 更新为版本 **11.0.11.9.1**。有关更多信息，请参阅 [Corretto 11 存储库中的 Amazon Corretto 11 的更改日志](https://github.com/corretto/corretto-11/blob/develop/CHANGELOG.md)。 GitHub 已将 Corretto 8 更新为版本 **8.292.10.1**。有关更多信息，请参阅 [Corretto 8 存储库中的 Amazon Corretto 8 的更改日志](https://github.com/corretto/corretto-8/blob/develop/CHANGELOG.md)。 GitHub 这两个 Corretto 更新都是安全版本。  | 
|  **.NET 内核**  |  已将 .NET Core 更新为 [5.0.4](https://github.com/dotnet/core/blob/master/release-notes/5.0/5.0.5/5.0.5.md)、[3.1.14](https://github.com/dotnet/core/blob/master/release-notes/3.1/3.1.14/3.1.14.md) 和 [2.1.27](https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1.27/2.1.27.md) 版。  | 
|  **Node.js**  |  更新了 Node.js 14，以添加对 Node 版本 [14.16.1](https://nodejs.org/en/blog/release/v14.16.1/) 的支持。 更新了 Node.js 12，以添加对 Node 版本 [12.22.1](https://nodejs.org/en/blog/release/v12.22.1/) 和 [12.22.0](https://nodejs.org/en/blog/release/v12.22.0/) 的支持。 新的 Node.js 版本是安全版本。  | 
|  **PHP**  |  将编辑器更新为适用于 PHP 8.0 的 **2.0.13** 版本，以及适用于 PHP 7.4 的 **1.10.22** 版本。有关更多信息，请参阅上的 Composer 存储库中的[发行版](https://github.com/composer/composer/releases) GitHub。 这两个更新都是安全版本。  | 
|  **Ruby**  |  已将 Ruby 2.7 和 2.6 分别更新为 [2.7.3](https://www.ruby-lang.org/en/news/2021/04/05/ruby-2-7-3-released/) 和 [2.6.7](https://www.ruby-lang.org/en/news/2021/04/05/ruby-2-6-7-released/) 版本。 已更新 RubyGems 至 [3.2.15](https://blog.rubygems.org/2021/03/19/3.2.15-released.html) 版本。 Ruby 2.7 和 2.6 更新是安全版本。  | 

## 新平台版本
<a name="release-2021-05-03-al2.platforms"></a>

**注意**  
下表列出每个平台的所有受支持的平台分支。仅更新 Amazon Linux 2 平台分支。

**Topics**
+ [Docker](#release-2021-05-03-al2.platforms.docker)
+ [Go](#release-2021-05-03-al2.platforms.go)
+ [Java SE](#release-2021-05-03-al2.platforms.javase)
+ [Tomcat](#release-2021-05-03-al2.platforms.java)
+ [.NET Core on Linux](#release-2021-05-03-al2.platforms.dotnetlinux)
+ [Node.js](#release-2021-05-03-al2.platforms.nodejs)
+ [PHP](#release-2021-05-03-al2.platforms.PHP)
+ [Python](#release-2021-05-03-al2.platforms.python)
+ [Ruby](#release-2021-05-03-al2.platforms.ruby)

### Docker
<a name="release-2021-05-03-al2.platforms.docker"></a>


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  Docker  |  Docker Compose  |  代理服务器  | 
| --- | --- | --- | --- | --- | 
|   ** Docker AL2 版本 3.3.0**   * 64bit Amazon Linux 2 v3.3.0 running Docker *   |  2.0.20210421  |  20.10.4  |  1.29.1  |  nginx 1.18.0  | 
|   **Single Container Docker 版本 2.16.7**   * 64bit Amazon Linux 2018.03 v2.16.7 running Docker 19.03.13-ce *   |  2018.03.0  |  19.03.13-ce  |    |  nginx 1.18.0  | 

### Go
<a name="release-2021-05-03-al2.platforms.go"></a>


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  AWS X-Ray  |  代理服务器  | 
| --- | --- | --- | --- | --- | 
|   ** Go 1 AL2 版本 3.2.2**   * 64bit Amazon Linux 2 v3.2.2 running Go 1 *   |  2.0.20210421  |  Go 1.16.3  |  3.2.0  |  nginx 1.18.0  | 
|   **Go 1 版本 2.18.2**   * 64bit Amazon Linux 2018.03 v2.18.2 running Go 1.16.3 *   |  2018.03.0  |  Go 1.16.3  |  3.1.0  |  nginx 1.18.0  | 

### Java SE
<a name="release-2021-05-03-al2.platforms.javase"></a>


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  工具  |  AWS X-Ray  |  代理服务器  | 
| --- | --- | --- | --- | --- | --- | 
|   **Corretto 11 版本 3.1.8**   * 64bit Amazon Linux 2 v3.1.8 running Corretto 11 *   |  2.0.20210421  |  Corretto 11.0.11.9.1  |  Ant 1.10.7、Gradle 5.6.2、Maven 3.6.2  |  3.2.0  |  nginx 1.18.0  | 
|   **Corretto 8 版本 3.1.8**   * 64bit Amazon Linux 2 v3.1.8 running Corretto 8 *   |  2.0.20210421  |  Corretto 8.292.10.1  |  Ant 1.10.7、Gradle 5.6.2、Maven 3.6.2  |  3.2.0  |  nginx 1.18.0  | 
|   ** Java 8 版本 2.11.7**   * 64bit Amazon Linux 2018.03 v2.11.7 running Java 8 *   |  2018.03.0  |  Java 1.8.0\$1282  |  Ant 1.9.6、Gradle 2.7、Maven 3.3.3  |  3.1.0  |  nginx 1.18.0  | 
|   ** Java 7 版本 2.11.7**   * 64bit Amazon Linux 2018.03 v2.11.7 running Java 7 *   |  2018.03.0  |  Java 1.7.0\$1261  |  Ant 1.9.6、Gradle 2.7、Maven 3.3.3  |  3.1.0  |  nginx 1.18.0  | 

### Tomcat
<a name="release-2021-05-03-al2.platforms.java"></a>


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  AWS X-Ray  |  应用程序服务器  |  代理服务器  | 
| --- | --- | --- | --- | --- | --- | 
|   **Corretto 11 with Tomcat 8.5 AL2 版本 4.1.8**   * 64bit Amazon Linux 2 v4.1.8 running Tomcat 8.5 Corretto 11 *   |  2.0.20210421  |  Corretto 11.0.11.9.1  |  3.2.0  |  Tomcat 8.5.63  |  nginx 1.18.0（默认），Apache 2.4.46  | 
|   **Corretto 8 with Tomcat 8.5 AL2 版本 4.1.8**   * 64bit Amazon Linux 2 v4.1.8 running Tomcat 8.5 Corretto 8 *   |  2.0.20210421  |  Corretto 8.292.10.1  |  3.2.0  |  Tomcat 8.5.63  |  nginx 1.18.0（默认），Apache 2.4.46  | 
|   **Java 8 with Tomcat 8.5 版本 3.4.6**   * 64bit Amazon Linux 2018.03 v3.4.6 running Tomcat 8.5 Java 8 *   |  2018.03.0  |  Java 1.8.0\$1282  |  3.1.0  |  Tomcat 8.5.63  |  Apache 2.4.46（默认）、Nginx 1.18.0  | 

### .NET Core on Linux
<a name="release-2021-05-03-al2.platforms.dotnetlinux"></a>


****  

|  平台版本和*解决方案堆栈名称*   |  框架  |  代理服务器  |  AMI  |  AWS X-Ray  | 
| --- | --- | --- | --- | --- | 
|   **.NET Core on AL2 版本 2.1.5**   * 64bit Amazon Linux 2 v2.1.5 running .NET Core *   |  .NET 5.0.5，支持 5.0.5、3.1.14、2.1.27  |  nginx 1.18.0  |  2.0.20210421  |  3.2.0  | 

### Node.js
<a name="release-2021-05-03-al2.platforms.nodejs"></a>


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  Node.js 版本（npm 版本）  |  代理服务器  |  Git  |  AWS X-Ray  | 
| --- | --- | --- | --- | --- | --- | 
|   **Node.js 14 AL2 版本 5.3.2**   * 64bit Amazon Linux 2 v5.3.2 running Node.js 14 *   |  2.0.20210421  |  14.16.1 (6.14.12)、14.16.0 (6.14.11)、14.15.5 (6.14.11)、14.15.4 (6.14.10)、14.15.3 (6.14.9)、14.15.2 (6.14.9)、14.15.1 (6.14.8)、14.15.0 (6.14.8)、14.14.0 (6.14.8)、14.13.1 (6.14.8)、14.13.0 (6.14.8)、14.12.0 (6.14.8)、14.11.0 (6.14.8)、14.10.1 (6.14.8)、14.10.0 (6.14.8)、14.9.0 (6.14.8)、14.8.0 (6.14.7)、14.7.0 (6.14.7)、14.6.0 (6.14.6)、14.5.0 (6.14.5)、14.4.0 (6.14.5)、14.3.0 (6.14.5)、14.2.0 (6.14.4)、14.1.0 (6.14.4)、14.0.0 (6.14.4)  默认版本：14.16.1  |  nginx 1.18.0（默认），Apache 2.4.46  |  2.23.4  |  3.2.0  | 
|   **Node.js 12 AL2 版本 5.3.2**   * 64bit Amazon Linux 2 v5.3.2 running Node.js 12 *   |  2.0.20210421  |  12.22.1 (6.14.12)、12.22.0 (6.14.11)、12.21.0 (6.14.11)、12.20.2 (6.14.11)、12.20.1 (6.14.10)、12.20.0 (6.14.8)、12.19.1 (6.14.8)、12.19.0 (6.14.8)、12.18.4 (6.14.6)、12.18.3 (6.14.6)、12.18.2 (6.14.5)、12.18.1 (6.14.5)、12.18.0 (6.14.4)、12.17.0 (6.14.4)、12.16.3 (6.14.4)、12.16.2 (6.14.4)、12.16.1 (6.13.4)、12.16.0 (6.13.4)、12.15.0 (6.13.4)、12.14.1 (6.13.4)、12.14.0 (6.13.4)、12.13.1 (6.12.1)、12.13.0 (6.12.0)、12.12.0 (6.11.3)、12.11.1 (6.11.3)、12.11.0 (6.11.3)、12.10.0 (6.10.3)、12.9.1 (6.10.2)、12.9.0 (6.10.2)、12.8.1 (6.10.2)、12.8.0 (6.10.2)、12.7.0 (6.10.0)、12.6.0 (6.9.0)、12.5.0 (6.9.0)、12.4.0 (6.9.0)、12.3.1 (6.9.0)、12.3.0 (6.9.0)、12.2.0 (6.9.0)、12.1.0 (6.9.0)、12.0.0 (6.9.0)  默认版本：12.22.1  |  nginx 1.18.0（默认），Apache 2.4.46  |  2.23.4  |  3.2.0  | 
|   **Node.js 版本 4.17.5**   * 64bit Amazon Linux 2018.03 v4.17.5 running Node.js *   |  2018.03.0  |  12.22.1 (6.14.12)、12.22.0 (6.14.11)、12.21.0 (6.14.11)、12.20.2 (6.14.11)、12.20.1 (6.14.10)、12.20.0 (6.14.8)、12.19.1 (6.14.8)、12.19.0 (6.14.8)、12.18.4 (6.14.6),12.18.3 (6.14.6)、12.18.2 (6.14.5)、12.18.1 (6.14.5)、12.18.0 (6.14.4)、12.16.4 (6.14.4)、12.16.2 (6.14.4)、12.16.1 (6.13.4)、12.15.0 (6.13.4)、12.14.1 (6.13.4)、12.14.0 (6.13.4)、10.24.1 (6.14.12)、10.24.0 (6.14.11)、10.23.3 (6.14.11)、10.23.2 (6.14.10)、10.23.1 (6.14.10)、10.23.0 (6.14.8)、10.22.1 (6.14.6)、10.22.0 (6.14.6)、10.21.0 (6.14.4)、10.20.1 (6.14.4)、10.20.0(6.14.4)、10.19.0 (6.13.4)、10.18.1 (6.13.4)、10.18.0 (6.13.4)、10.17.0 (6.11.3)、10.16.3 (6.9.0)、10.16.2 (6.9.0)、10.16.1 (6.9.0)、10.16.0 (6.9.0)、10.15.3 (6.4.1)、10.15.1 (6.4.1)、10.15.0 (6.4.1)、10.14.1 (6.4.1)  默认版本：12.22.1  |  nginx 1.18.0、Apache 2.4.43  |  2.18.5  |  3.1.0  | 

### PHP
<a name="release-2021-05-03-al2.platforms.PHP"></a>


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  Composer  |  代理服务器  | 
| --- | --- | --- | --- | --- | 
|   ** PHP 8.0 AL2 版本 3.2.1**   * 64bit Amazon Linux 2 v3.2.1 running PHP 8.0 *   |  2.0.20210421  |  PHP 8.0.2  |  2.0.13  |  nginx 1.18.0（默认），Apache 2.4.46  | 
|   ** PHP 7.4 AL2 版本 3.2.1**   * 64bit Amazon Linux 2 v3.2.1 running PHP 7.4 *   |  2.0.20210421  |  PHP 7.4.15  |  1.10.22  |  nginx 1.18.0（默认），Apache 2.4.46  | 

### Python
<a name="release-2021-05-03-al2.platforms.python"></a>


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  包管理器  |  包装程序  |  meld3  |  AWS X-Ray  |  代理服务器  | 
| --- | --- | --- | --- | --- | --- | --- | --- | 
|   ** Python 3.8 AL2 版本 3.2.2**   * 64bit Amazon Linux 2 v3.2.2 running Python 3.8 *   |  2.0.20210421  |  Python 3.8.5  |  pipenv 2020.8.13  |    |    |  3.2.0  |  nginx 1.18.0（默认），Apache 2.4.46  | 
|   ** Python 3.7 AL2 版本 3.2.2**   * 64bit Amazon Linux 2 v3.2.2 running Python 3.7 *   |  2.0.20210421  |  Python 3.7.9  |  pipenv 2020.8.13  |    |    |  3.2.0  |  nginx 1.18.0（默认），Apache 2.4.46  | 
|   ** Python 3.6 版本 2.10.0**   * 64bit Amazon Linux 2018.03 v2.10.0 running Python 3.6 *   |  2018.03.0  |  Python 3.6.12  |  pip 9.0.3  |  setuptools 56.0.0  |  meld3 1.0.2  |  3.1.0  |  带有 mod\$1wsgi 3.5 的 Apache 2.4.46  | 

### Ruby
<a name="release-2021-05-03-al2.platforms.ruby"></a>


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  包管理器  |  应用程序服务器  |  AWS X-Ray  |  代理服务器  | 
| --- | --- | --- | --- | --- | --- | --- | 
|   ** Ruby 2.7 AL2 版本 3.2.5**   * 64bit Amazon Linux 2 v3.2.5 running Ruby 2.7 *   |  2.0.20210421  |  Ruby 2.7.3-p183  |  RubyGems 3.2.15  |  Puma 5.2.2  |  3.2.0  |  nginx 1.18.0  | 
|   ** Ruby 2.6 AL2 版本 3.2.5**   * 64bit Amazon Linux 2 v3.2.5 running Ruby 2.6 *   |  2.0.20210421  |  Ruby 2.6.7-p197  |  RubyGems 3.2.15  |  Puma 5.2.2  |  3.2.0  |  nginx 1.18.0  | 
|   **Ruby 2.6 with Puma 版本 2.12.6**   * 64bit Amazon Linux 2018.03 v2.12.6 running Ruby 2.6 (Puma) *   |  2018.03.0  |  Ruby 2.6.7-p197  |  RubyGems 3.2.15  |  Puma 2.16.0  |  3.1.0  |  nginx 1.18.0  | 
|   **Ruby 2.6 with Passenger 版本 2.12.6**   * 64bit Amazon Linux 2018.03 v2.12.6 running Ruby 2.6 (Passenger Standalone) *   |  2018.03.0  |  Ruby 2.6.7-p197  |  RubyGems 3.2.15  |  Passenger 4.0.60  |  3.1.0  |  nginx 1.18.0  | 