Launching a Drupal Build on AWS Elastic Beanstalk

Setup and Launch a Drupal Build on Elastic Beanstalk.

***** Elastic Beanstalk is difficult to provision servers. I attempted to add PHP Modules to the Ubuntu instance with no success. *****

Install CLI IAM User Git

Regions, Availability Zones, and Local Zones Amazon AWS DEVOPS
Elastic Beanstalk
PHP 7.3running on 64bit Amazon Linux 2

Add Amazon IAM Identity and Access Management Console

Add a user for your new instance.
Generate an access key limited to the AwsCli tool.
Dashboard | User | Security Credentials | Create Access Key
Be sure to download the csv file. You will have to regenerate keys if you lose them.

Install Amazon CLI on OSX

The Amazon CLI allows you to run commands including setting up SSH access to your instance.
brew install awscli
The "examples" directory has been installed to:

Bash completion has been installed to:

zsh completions and functions have been installed to:
==> Summary
🍺  /usr/local/Cellar/awscli/2.0.19: 11,101 files, 79.9MB

Once installed the aws command line command can be used.

aws ls
aws configure
aws s3 ls
This shows you a list of the available S3 buckets

Install the EB CLI with homebrew On OSX

The Amazon Elastic Beanstalk CLI allows you to run commands including setting up SSH access to your instance.
Use Homebrew to install Amazon CLI.
brew install awsebcli
eb init

Do you want to set up SSH for your instances?
eb ssh

Deploying a high-availability Drupal website with an external Amazon RDS database to Elastic Beanstalk

Launch a DB instance in Amazon RDS

Step 10: For Source, type sg- to view a list of available security groups. Choose the current security group to allow resources in the security group to receive traffic on the database port from other resources in the same group.

Step5: Missing the Database name config value RDS_DB_NAME

Deploying drupal on Elastic Beanstalk

Drupal climbs the AWS Elastic Beanstalk

Using Elastic Beanstalk with Amazon Elastic File System

Using the EB CLI with Git

  1. awseb-drup-1

Deploying applications to Elastic Beanstalk environments

Using the EB CLI with Git

  1. Launch an instance of Elastic Beanstalk.

  2. Install Amazon CLI on your local environment.

  3. Create a Mysql database.

  4. Upload files to EB

“Elastic Beanstalk also provides sample applications that use Amazon EFS for shared storage. The two projects are configuration files that you can use with a standard WordPress or Drupal installer to run a blog or other content management system in a load balanced environment. When a user uploads a photo or other media, it is stored on an Amazon EFS file system, avoiding the need to use a plugin to store uploaded files in Amazon S3.”

mod_rewrite beanstalk ?????

Customizing software on Linux servers

$ cat /etc/*-release NAME=”Amazon Linux” VERSION=”2” ID=”amzn” ID_LIKE=”centos rhel fedora” VERSION_ID=”2” PRETTY_NAME=”Amazon Linux 2” ANSI_COLOR=”0;33” CPE_NAME=”cpe:2.3:o:amazon:amazon_linux:2” HOME_URL=”” Amazon Linux release 2 (Karoo)

Environment properties and other software settings

Customizing software on Linux servers *****

Creating and deploying PHP applications on Elastic Beanstalk

mod_rewrite - HTTP to HTTPS redirection rule only works after accessing it through HTTP first

Advanced environment customization with configuration files (.ebextensions)

UGH! No good info on provisioning the OS instance.