Elastic Beanstalk Linux platforms
The Elastic Beanstalk Linux platforms provide an extensive amount of functionality out of the box. You can extend the platforms in several ways to support your application. For details, see Extending Elastic Beanstalk Linux platforms.
Most of the platforms that Elastic Beanstalk supports are based on the Linux operating system. Specifically, these platforms are based on Amazon Linux, a Linux distribution provided by AWS. Elastic Beanstalk Linux platforms use Amazon Elastic Compute Cloud (Amazon EC2) instances, and these instances run Amazon Linux.
Topics
Supported Amazon Linux versions
AWS Elastic Beanstalk supports platforms based on Amazon Linux 2 and Amazon Linux 2023.
For more information about Amazon Linux 2 and Amazon Linux 2023, see the following:
-
Amazon Linux 2 – Amazon Linux in the Amazon EC2 User Guide.
-
Amazon Linux 2023 – What is Amazon Linux 2023? in the Amazon Linux 2023 User Guide
For details about supported platform versions, see Elastic Beanstalk supported platforms.
Note
You can migrate your application from an Elastic Beanstalk AL1 or AL2 platform branch to the equivalent AL2023 platform branch. For more information, see Migrating your Elastic Beanstalk Linux application to Amazon Linux 2023 or Amazon Linux 2.
Amazon Linux 2023
AWS announced the general
availability
There is a high degree of compatibility between Elastic Beanstalk Amazon Linux 2 and Amazon Linux 2023 platforms. Although there are some differences to note:
-
Instance Metadata Service Version 1 (IMDSv1) – The DisableIMDSv1 option setting defaults to
true
on AL2023 platforms. The default isfalse
on AL2 platforms. -
pkg-repo instance tool – The pkg-repo tool is not available for environments running on AL2023 platforms. However,you can manually apply package and operating system updates to an AL2023 instance. For more information, see Managing packages and operating system updates in the Amazon Linux 2023 User Guide.
-
Apache HTTPd configuration – The Apache
httpd.conf
file for AL2023 platforms has some configuration settings that are different from those for AL2:-
Deny access to the server’s entire file system by default. These settings are described in Protect Server Files by Default on the Apache website Security Tips
page. -
Stop users from overriding security features you've configured. The configuration denies access to set up of
.htaccess
in all directories, except for those specifically enabled. This setting is described in Protecting System Settings on the Apache website Security Tipspage. The Apache HTTP Server Tutorial: .htaccess files page states this setting may help improve performance. -
Deny access to files with name pattern
.ht*
. This setting prevents web clients from viewing.htaccess
and.htpasswd
files.
-
You can change any of the above configuration settings for your environment. For more information, see Configuring Apache HTTPD.
List of Elastic Beanstalk Linux platforms
The following list provides the Linux platforms that Elastic Beanstalk supports for different programming languages as well as for Docker containers. Elastic Beanstalk offers platforms based on Amazon Linux 2 and Amazon Linux 2023 for all of them. To learn more about a platform, select the corresponding link.