If you need an appspec.yml file in addition to the buildspec.yml file. buildspec.yml defines the build process, while appspec.yml defines the deployment process. appspec.yml is used by CodeDeploy to: Identify the files to deploy Specify the deployment lifecycle hooks (e.g., BeforeInstall, AfterInstall) Define the deployment settings (e.g., file permissions, directory structure) Here's an example appspec.yml file: version: 0.0 os: linux files: - source: / destination: /var/www/html hooks: BeforeInstall: - location: scripts/before_install.sh timeout: 300 AfterInstall: - location: scripts/after_install.sh timeout: 300 This file specifies: The files to deploy (in this case, the entire repository) The deployment destination ( /var/www/html ) Two lifecycle hooks: BeforeInstall and AfterInstall , which run scripts before and after installation, respectively. Make sure to create an appspec.yml file in the root of your repository and commit it to CodeCommit. CodeDeploy will use this file to deploy your application to the EC2 instance(s).