I'm working on migrating our deployment pipeline from TeamCity + Octopus Deploy to AWS Pipeline(using AWS CodeBuild + AWS CodeDeploy). I've been able to setup the whole pipeline for 1 environment. What I'm struggling is promote that deployment to a different environment.
For instance, the initial deployment is carried out in test environment. CodeDeploy agent on test instance handles config transformations (i.e replace connection string etc with test values). Now I want to deploy the same artifacts (without a rebuild) to the production environment so that the agent does the same thing and the application run for production environment.
In Octopus Deploy, this functionality is built-in. You simply click Promote button and select the target environment. Is there a way to achieve the same with AWS CodePipeline service?