How to specify different branch instead of master branch on AWS code deploy while using Github as a source provider? I see there is no option to select in the console to select a branch(maybe I missed).
I tried to checkout to different branch while we are in the pre_build phase, but it failed in the Download Source phase itself as the master branch doesn't have YAML file.
- apt-get update -y
- git checkout testbranch