Skip to content

Simple CloudFormation stack to host multiple PHP websites.

License

Notifications You must be signed in to change notification settings

janost/cfn-simple-webhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

This is a simple multi-tenant webhosting stack implemented in CloudFormation to host multiple (PHP) websites. Please note that it's intentionally not highly available.

High level architecture overview

  • EC2 instance for serving sites / running containers with multiple encrypted EBS volumes (root, swap, data)
  • Elastic IP for the instance
  • Encrypted RDS MySQL instance for databases
  • ElastiCache memcached instance
  • All resources isolated in a VPC

Requirements

  • Latest version of Packer
  • Latest version of Ansible

Building the base image

ansible-galaxy install -p playbook/galaxy -r playbook/requirements.yml
packer build base-image.json

The resulting AMI ID should be supplied to CloudFormation when building the stack in the InstanceAMI parameter.

Tooling

This stack requires wsman to be installed to /data/wsman. The tool is tailored to manage sites on a hosting stack built by this template. This will be automated in the future.

About

Simple CloudFormation stack to host multiple PHP websites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published