I am trying to figure out the best way to do this on AWS. What I want to do is:
I want to launch an EC2 instance using my custom AMI but on launch make some custom configurations to the environment. I want to:
- Checkout some git repos.
- Create a few php files with content i specify in a folder in my docroot.
- Install composer on one of the repos.
- Modify the https.conf docroot to a specific folder.
Can this all be done in the launch configuration? What would be a best practice for accomplishing this?