So I am trying to separate my AWS CDK build and deploy in 2 steps, so that I can rerun one of the steps if necessary:
pipelines:
branches:
master:
- step:
<<: *build
deployment: development
name: Build for development
- step:
<<: *deploy
deployment: development
name: Deploy to development
So the Build step required the deployment variable because it used in AWS CDK code.
And the deploy also needs it to get the right AWS_ACCESS_KEYs .
Bitbucket doesnt allow me to use this variable deployment twice.
How do I resolve this issue?
My current solution is the have build & deploy in one step.