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.
- Host: GitHub
- URL: https://github.com/jweyrich/aws-demo-php-eb-elasticache
- Owner: jweyrich
- Created: 2017-01-05T14:17:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T13:58:27.000Z (about 8 years ago)
- Last Synced: 2025-04-01T20:41:48.946Z (6 months ago)
- Topics: autoscaling, aws, aws-elastic-beanstalk, demo, elasticache-cluster, loadbalancer, memcached, php, vpc
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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