# The aim of this tutorial is to show how to create an AWS Codestar connection between the repository (GitHub or Bitbucket) to AWS CodePipeline.

Creating a connection for Bitbucket

1. Log in to the Shared-Services Account and go to Codepipeline.

Codestar01

2. Go to Settings → Connections

3. Choose your provider. E.g: Bitbucket

Codestar02

4. Give a name for your connection (e.g: BitbucketConnection)

5. Click in "Install a new app"

Codestar03

6. Authorize App

Codestar04

7. Connect to Bitbucket

Codestar05

8. Connection Created

Codestar06

Creating a connection for GitHub

1. Creating Connection

Codestar07

2. Install a new app

Codestar08

3. Choose your project

Codestar09

4. Set all repositories

Codestar10

5. Click on Connect

Codestar11

6. Copy the ARN connection and send to DNX team

Codestar12