AWS CodeDeploy uses a configuration file called appspec.yml that defines the deployment process, hooks, and how is the software artifact managed. In your local file system create a directory named myApp using the following command and cd into the directory:
mkdir myApp && cd myApp
Create the appspec.yml on the root of the myApp directory. For you reference, you can find the complete file at https://github.com/gabanox/Certified-Solution-Architect-Associate-Guide/blob/master/chapter22/appspec.yml:
Create a directory inside myApp called deploy/ here we will create two files; before_install and restart_server (for non Unix systems, ...