Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Code PipeLine not getting all repository of BitBucket account

I am using AWS CodeBuild and CodePipeline service to implement CI/CD in my project.

AWS CodeBuild using Bitbucket I am getting all repository of my Bitbucket account.

While Creating CodePipeLine and connect with my BitBucket, I can't get all repository of my BitBucket account.

  • I have admin access to BitBucket.

  • AWS CodeStar injected successfully in Bitbucket

So is there any extra setting need in the BitBucket account for implement AWS Codepipeline?

like image 813
Nidhi Avatar asked Jul 31 '20 02:07

Nidhi


People also ask

Does AWS CodePipeline work with bitbucket?

You can now easily connect your Atlassian Bitbucket Cloud source repository to your AWS CodePipeline, allowing for the automation of the build, test, and deploy phases of your release process every time there is a code change.

How do I connect my AWS to bitbucket?

Sign in to the AWS Management Console, and open the AWS Developer Tools console at https://console.aws.amazon.com/codesuite/settings/connections . Choose Settings > Connections, and then choose Create connection. To create a connection to a Bitbucket repository, under Select a provider, choose Bitbucket.

How can I integrate Bitbucket with AWS CodePipeline?

For example, you can now seamlessly connect your Atlassian Bitbucket Cloud source repository to AWS CodePipeline. This allows you to automate the build, test, and deploy phases of your release process each time a code change occurs. This new feature is available in the following Regions:

How do I connect CodePipeline to AWS Management Console?

The walkthrough contains the following steps: Set up CodeStar connections. Add a deployment stage. Use CI/CD to update your website. When connecting CodePipeline to Bitbucket Cloud, it helps if you already signed in to Bitbucket. After you sign in to Bitbucket Cloud, you perform the rest of the connection steps on the AWS Management Console.

How do I access CodePipeline repositories in Bitbucket?

2 Answers 2 ActiveOldestVotes 8 CodePipeline uses a Bitbucket App installed on your Bitbucket account to access repositories. Currently Bitbucket only allows Apps to access repositories on the same account that the App was installed on.

How to deploy a Hugo website to AWS using CodePipeline?

To follow along you will need a sample page. Here is some simple html code that you can name index.html and add to your repo. For this use case, you deploy a Hugo website from your Bitbucket Cloud repository to your S3 bucket using CodePipeline. You can then connect your Bitbucket Cloud account to your AWS account to deploy code natively.


2 Answers

CodePipeline uses a Bitbucket App installed on your Bitbucket account to access repositories. Currently Bitbucket only allows Apps to access repositories on the same account that the App was installed on. I’ve passed this feedback onto the CodePipeline team who is partnering with Atlassian on this integration.

For now you can try this workaround:

  1. Select the connection
  2. Type the name of the Repo as <account>/<repository-name> in the "Repository name" field
  3. Select the branch

CodePipeline connection should be able to retrieve the repo when you run the pipeline.

like image 180
shariqmaws Avatar answered Dec 03 '22 10:12

shariqmaws


Currently, Bitbucket only allows Apps to access repositories on the same account.

You can create a webhook from Bitbucket to GitHub and connect the correct Github repo to CodePipeline.

https://poeditor.com/blog/webhooks-solution-automate-sync-poeditor-github-bitbucket-repos/#:~:text=To%20add%20a%20webhook%20to,URL%20in%20the%20empty%20field.

like image 31
HGG-Dev Avatar answered Dec 03 '22 11:12

HGG-Dev