Woot, I have now made a working CloudFormation template to spin up an EC2 instance with a custom subdomain on my main domain name with PHP and NGinX installed and running. All I need now is auto-TLS configuration.