I have installed AWS CodeDeploy addon and when I go to my repository I can see the 'Deploy AWS button' (after configuring the Bitbucket CodeDeploy settings) and it works.
I have also setup a Bitbucket pipeline to run build and tests.
After the tests are successful is there a way to trigger the above Deploy AWS button from the bitbucket-pipeline.yml script section ? I am aware of the codedeploy python script (https://bitbucket.org/awslabs/aws-codedeploy-bitbucket-pipelines-python) but I believe the Deploy AWS addon already does the job and if I can trigger that addon process right from the pipeline script it would be great.
Pipeline-CodeDeploy.png
Any ideas/thoughts on how to achieve this ?
Community moderators have prevented the ability to post new answers.
For security reasons, add-ons within Bitbucket are completely sandboxed from each other. So Pipelines (which is itself built as an add-on) cannot access or trigger the behaviour of the AWS CodeDeploy add-on.
The example script you've linked to is the easiest way to get deployments working with Pipelines and AWS CodeDeploy. Set up your AWS authentication environment variables, drop the python script in your repo, and the additional code required in your bitbucket-pipelines.yml
should be just a few lines as shown here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.