This template creates an OpsWorks layer for a PHP application with auto healing enabled and public IPs assigned.

CloudFormation Template