We want to be able to run a migration (change data schema, seeding, etc) in a step against a database that is not publicly available. One way other CICD platforms achieve that feature is by allowing step execution in a remote agent (for example, an EC2 running in AWS that has ingress to the DB server). Is that possible within bitbucket pipeline?
Bitbucket Pipelines doesn’t have a first-party remote agent, but you might find a solution like AWS CodeDeploy to be useful in your scenario. You can use a Pipeline to upload an artifact to S3 and then invoke a CodeDeploy deployment. The CodeDeploy agent running on your EC2 would then download the artifact and apply it (do the schema migration, for example), and report the status back to the Pipeline run.
We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events