- Run 'aws configure' on your machine
- Apply changes to variables.tf regarding instance sizes, RDS user and passwords etc.
- Run 'terraform apply' and wait for outputs
- Note 'memchached_endpoint' and 'frontend_loadbalancer_dnsname' values
- Wait for 'terra-wp-launch' instance to terminate itself
- Enter the loadbalancer address to browser and setup wordpress
- Activate 'W3 Total Cache' plugin
- Go to 'W3 Total Cache' General settings and enable Database cache with Memcached -> SAVE
- Open 'Advanced' settings for Database cache and enter your 'memchached_endpoint' in hostname field -> click TEST (should be OK) -> click SAVE
zonkia/elasticache_rds_wordpress
Example Wordpress deployment with RDS MySQL, EFS storage, autoscaling, loadbalancing and Elasticache for Memcached DB caching
HCL