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.
- 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
- Latest version of Packer
- Latest version of Ansible
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.
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.