Create Git Connection

Create a connection to GitHub (console)

You can use the console to create a secure connection between AWS services and your GitHub account.

Note on Service Prefixes and ARNs:

Following the renaming of AWS CodeStar Connections to AWS CodeConnections, the resource ARN service prefix has transitioned from codestar-connections to codeconnections.

  • Console: Since July 1, 2024, resources created via the AWS Management Console use the codeconnections prefix in their ARNs.
  • CLI, SDK, and CloudFormation: You can explicitly choose between the new codeconnections and the legacy codestar-connections prefixes when creating resources through these programmatic interfaces.
  • Visibility: The console displays all resources regardless of which service prefix is used in the ARN. Existing connections using the old prefix continue to function without interruption.
  1. Sign in to the AWS Management Console, and open the Developer Tools console here.

  2. Choose Settings > Connections, and then choose Create connection.

  1. To create a connection to a GitHub or GitHub Enterprise Cloud repository, under Select a provider choose GitHub.
  • In Connection name, enter the name for the connection: github-connection
  • Choose Connect to GitHub, and proceed to Step 2.

  1. Choose Authorize AWS Connector for GitHub. The connection page displays and shows the GitHub Apps field.

If you have previously authorized the AWS Connector for GitHub on this account, you might skip this authorization step and go directly to selecting the app.

  1. Under GitHub Apps, choose Install a new app to create one.

  1. Choose Install & Authorize. This will take you to the GitHub website to authorize the app.

Ensure you are logged into the correct GitHub account. You can choose to grant access to All repositories or Only select repositories. For security best practices, you may select only the repository you are using for this lab.

  1. Back on the Connect to GitHub page, the new installation ID will appear. Choose Connect.

  1. Once connected, you will see a banner indicating that the connection to GitHub was successful. The connection status will change to Available.