DEV Community

Deploy Drupal on ECS Fargate

Do you want to build a Content Management System (CMS) based on Drupal in a totally SERVERLESS manner automatically on Amazon Web Services (AWS)? Well this solution can definitely help you out with the following overview:

  1. Host the Application layer on ECSFargate which is totally serverless
  2. Attach the EFS system to multiple tasks on ECSFargate
  3. Host the Database layer on Aurora for MySQL in Serverlessv2 db class
  4. Deploy both the app and database layer in the private subnet in a VPC
  5. Use Internet Gateway deployed in the public subnet for inbound traffic
  6. Leverage NAT Gateway deployed in the public subnet for outbound traffic
  7. The entire stack is deployed via CloudFormation template.

Deploying the CloudFormation Stacks

Clone the repository and deploy the solution from an AWS Cloudformation console using the cloned main.yaml file.

git clone https://github.com/angelomao/drupal-on-ecs-fargate.git

Providing the Parameter for CloudFormation to Deploy the Stack

Configuring the Drupal Website

Configure the demo Drupal application that you want to build. The application landing page redirects to the installation page after selecting Save and continue.

You will eventually see the website after initializing it successfully

Top comments (0)