Hi Team,
We have two ec2 instances one is for production and 2nd one is for development/staging. Similarly we have two branches, master and develop. Master's build is in used at production ec2 instance and develop is for staging server.
I have configured bitbucket-pipeline.yml with branches flow. But how I can control appsec.yml or any other feature to manage flow of builds to copy over just to relevant ec2 instances. At AWS codedeploy I can configure deployment group and when there would be commit either at master or develop branch, that build will be pushed to codedeploy deployment process and it will push code to deployment group where both servers are in same deployment group.
So question is how and where we can control build deployment to respective instance only with feature bitbucket to aws codedeploy.