- Verify the
buildspec.yml
andkey.pem
files. - In AWS CodeBuild, Create a project.
- Connect to GitHub and mention the Repository URL.
- Mention Source version (Optional).
- Use a buildspec file and the name should be
infrastructure/build/buildspec.yml
. - Enable CloudWatch logs.