Currently we are using mirror hook on bitbucket server to mirror to codecommit and run our pipelines and it appears smart mirroring is only used to mirror BB repos. Is there a mirror hook option option available in BB cloud? Or is it possible to use smart mirror to mirror to other repos?
Hi Adel and welcome to the community!
I'm afraid that there is no mirror hook/plugin for Bitbucket Cloud. With Smart Mirroring it is possible to mirror Bitbucket Cloud repos to a Bitbucket Server instance, but it is not possible to mirror to another Git hosting service.
You could make use of Bitbucket Cloud webhooks to receive notifications on push in one of your own servers and then mirror to Codecommit.
Another approach that I've found online would be to make use of Bitbucket Pipelines to mirror content to Codecommit.
The following blog post contains some more info on this and may be useful:
Kind regards,
Theodora
Thanks Theodora. This is really helpful, I will certainly look at the blog post, AWS also supports BitBucket as source for codepipeline using codestar integration (https://aws.amazon.com/blogs/devops/using-aws-codepipeline-and-aws-codestar-connections-to-deploy-from-bitbucket/) which is also an option. It also seems that BitBucket does not allow a service account, the app authorization/app password are tied to an individual account so there might be a challenge with integration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.