AWS Documentation

  1. Home
  2. Docs
  3. AWS Documentation
  4. AWS Drupal9 AMI on Amazon Linux 2

AWS Drupal9 AMI on Amazon Linux 2

This AMI supports following versions.

  • Amazon Linux 2 Kernel 5.10
  • PHP 8.0
  • Nginx 1.22
  • MariaDB 10.5
  • phpMyAdmin 5.2
  • Drupal 9.5.11

Note: Drupal 9.5.x will receive security coverage until November 1, 2023 when Drupal 9 is end-of-life. We recommend to use Drupal10 our AMI, if you use it production.

Drupal Installation

Once the instance is running, please access your Drupal9 hosting domain or enter the public DNS provided by AWS (IPv4 Public IP) into your browser.


Step 1: Choose language

You will see the Drupal9 application. Chose your language settings.

Step 2: Select an Installation profile

Usually to select Standard

Step 3: Database Configuration

Find database password

You can find the database server password by accessing the System Log in the EC2 management console:

1. Go to the Amazon EC2 console at

2. Chose your Instance and Click on Actions → Monitor and troubleshoot → Get System Log.

3. Get System log as shown below.

You can also SSH into your instance and find the login credential using the following command.

$ cat /home/ec2-user/credentials 
////////////////////credentials info////////////////////
--- drupal
----- Setting  : Success
--- phpMyAdmin
----- Setting  : Success
--- MariaDB
----- User     : root
----- Password : xq6npkp2WnyYqywf
----- User     : drupal
----- DB name  : drupal
----- Password : dnzehWu8iwGp6ukr

Step 4: Configure site


You can access phpMyAdmin after creating ssh tunnel.

ex.) create ssh tunnel

$ ssh ec2-user@{ipaddress} -i {ssh-key-file.pem} -N -L 8080:localhost:80


For phpMyAdmin please refer to phpMyAdmin User Guide



How can we help?