An open API service indexing awesome lists of open source software.

https://github.com/jweyrich/aws-demo-php-eb-elasticache

☁ Deploy a sample PHP application on AWS Elastic Beanstalk using AutoScaling + LoadBalancer + ElastiCache (memcached) for session storage.
https://github.com/jweyrich/aws-demo-php-eb-elasticache

autoscaling aws aws-elastic-beanstalk demo elasticache-cluster loadbalancer memcached php vpc

Last synced: 6 months ago
JSON representation

☁ Deploy a sample PHP application on AWS Elastic Beanstalk using AutoScaling + LoadBalancer + ElastiCache (memcached) for session storage.

Awesome Lists containing this project

README

          

## Description

Show how to deploy a sample PHP application on AWS Elastic Beanstalk using AutoScaling, LoadBalancer, and a pre-existing ElastiCache (memcached) cluster for PHP session storage. The required EC2 instances will be created within a pre-existing VPC and subnets.

## Requirements

a) You need to install the **Elastic Beanstalk Command Line Interface** (EB CLI) - [See the instructions][1].

b) Have a previously created VPC and its subnets.

c) Have a previously created ElastiCache cluster.

**NOTE**: You may automate _b_ and _c_ using [Elastic Beanstalk Environment Resources][2]. For the purposes of this demo, we assume you already have a VPC and a ElastiCache cluster.

## Steps to deploy

1. Clone

```
git clone https://github.com/jweyrich/aws-demo-php-eb-elasticache.git
cd aws-demo-php-eb-elasticache
```

2. Configure required details

a) Edit VPC/EC2 details on `.ebextensions\01_instance.config`.

b) Edit the ElastiCache host on `.ebextensions\04_memcached.config`.

c) Add and commit your changes:

```
git commit -a -m 'My changes.'
```

3. Deploy

```
eb deploy
```

[1]: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html
[2]: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-resources.html