I have a simple web application which uses AWS CodeCommit, CodePipeline and CodeDeploy. When ever a change is done and pushed to git, CodePipeline kicks in and deploys the code to the QA environment - WINDOWS. Now I want to setup a MANUALLY triggered deployment from the same repository to the production environment. However the source code locations are not the same. Also I may want to use different AfterInstall bat file. how can I have different appspec.yml or afterinstall.bat files in this situation. Or is there any other way of doing it?
Here's an approach that should work: