Context
A PHP project is set up on bitbucket cloud. The code is developed locally in XAMPP. The code runs in Amazon Web Service Elastic Beanstalk environment.
Problem
I commit my changes locally and then push to Bitbucket. Now I need to deploy from Bitbucket to the AWS Elastic Beanstalk instance.
I don't want any other tools to be used in-between to do this nor use the zip file to upload to Elastic Beanstalk. Instead perform directly from Bitbucket to Elastic Beanstalk. How can I do this?
Best Answer
I've had a similar issue, needing to deploy to Elastic Beanstalk from Bitbucket. While mine is a Python application, the following is language-agnostic.
I've been using this method for a while now and not really had a problem with it. We have other sections that belong to both Bitbucket's and AWS's Pipeline (testing and building docker images), but this method should work just fine without the "build" phase in CodePipeline.