Quick Notes:
- Magento code base go in the /html directory
2) Magento env.php and config.php go in the /magento directory
3) Nginx files (nginx.conf, vhost, & Magento-specific nginx) go in the /nginx directory
4) PHP-fpm files (php.ini, www.conf) go in the /php directory
5) All scripts referenced in the appspec.yml file go in the /scripts directory
AWS Code Deploy appspec.yml file
The appspec.yml file contains a list of resources in the form of artifacts and scripts that are called at certain hook points in the deployment process-- from stopping the application & entering maintenance mode, to deploying the code & restarting the services.