AWS CodeConnections

Home » AWS Cheat Sheets » AWS Developer Tools » AWS CodeConnections

AWS CodeConnections

Last updated on July 8, 2026

AWS CodeConnections Cheat Sheet

  • A service that configures and manages connections between AWS resources and external code repositories.
  • CodeConnections is commonly used with services like CodePipeline, CodeBuild, and CodeDeploy to integrate with third-party source code providers.

Features

    • Connections are configurations that connect AWS resources to external code repositories (e.g., Bitbucket, GitHub, GitLab)
    • Each connection is a named resource with a unique ARN used to reference it in other AWS services
    • You can work with connections via the following API operations:
      • CreateConnection: Creates a uniquely named connection.
      • DeleteConnection: Deletes a specified connection.
      • GetConnection: Returns information about a connection, including its status.
      • ListConnections: Lists connections associated with your account.
    • Hosts represent the infrastructure where a third-party provider (e.g., GitHub Enterprise Server) is installed. You create one host for all connections to that provider.
      • CreateHost: Creates a host representing the infrastructure.
      • DeleteHost: Deletes a specified host.
      • GetHost: Returns information about a host.
      • ListHosts: Lists hosts associated with your account.
    • You can manage tags for CodeConnections resources using:
      • ListTagsForResource, TagResource, and UntagResource.
    • A host created through the CLI or SDK is in ‘PENDING’ status by default. You make it ‘AVAILABLE’ by setting it up in the console.
Tutorials dojo strip

Security

    • AWS CodeConnections uses AWS IAM to manage permissions. The service prefix for actions and resources is now ‘codeconnections’.
    • IAM actions use the new prefix, for example: ‘codeconnections:CreateConnection’, ‘codeconnections:DeleteConnection’, ‘codeconnections:GetConnection’, ‘codeconnections:ListConnections’.
    • Connections created under the new service prefix use the ARN format: ‘arn:aws:codeconnections:region:account-ID:connection/*’.
  • How CodeConnections Works
    • Connections are used by AWS services (like CodePipeline) to trigger actions when a code change is made to a third-party repository.
    • To create a connection to a provider like GitHub Enterprise Server, you first create a host.
    • The console initiates a third-party handshake to complete the connection. Installations (apps like the Bitbucket app) are used to conduct this handshake.
    • Beginning July 1, 2024, the console creates connections with ‘codeconnections’ in the resource ARN.
    • CloudFormation resources for connections are now available under ‘AWS::CodeConnections::Connection’.

Pricing

    • AWS CodeConnections pricing is based on the number of active connections and the type of provider used.
    • There are no upfront costs or termination fees; you pay only for what you use.
    • Pricing may vary by region.

For current pricing details, refer to the official AWS CodeConnections pricing page.

 

AWS CodeConnections Cheat Sheet References:

https://docs.aws.amazon.com/codeconnections/latest/APIReference/Welcome.html

https://docs.aws.amazon.com/dtconsole/latest/userguide/rename.html

https://docs.aws.amazon.com/service-authorization/latest/reference/list_awscodeconnections.html

https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html

https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/CodeStar-connections.html

Tutorials Dojo portal

Turn Your Team Into Cloud-Ready Professionals Today

Tutorials Dojo for Business

Learn AWS with our PlayCloud Hands-On Labs

$2.99 AWS and Azure Exam Study Guide eBooks

tutorials dojo study guide eBook

New Claude Certified Architect Foundations CCA-F

Claude Certified Architect Foundations CCA-F

Learn GCP By Doing! Try Our GCP PlayCloud

Learn Azure with our Azure PlayCloud

FREE AI and AWS Digital Courses

FREE AWS, Azure, GCP Practice Test Samplers

SAA-C03 Exam Guide SAA-C03 examtopics AWS Certified Solutions Architect Associate

Subscribe to our YouTube Channel

Tutorials Dojo YouTube Channel

Follow Us On Linkedin

Written by: Jon Bonso

Jon Bonso is the co-founder of Tutorials Dojo, an EdTech startup and an AWS Digital Training Partner that provides high-quality educational materials in the cloud computing space. He graduated from Mapúa Institute of Technology in 2007 with a bachelor's degree in Information Technology. Jon holds 10 AWS Certifications and is also an active AWS Community Builder since 2020.

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, YouTube, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!

View Our AWS, Azure, and GCP Exam Reviewers Check out our FREE courses

Our Community

~98%
passing rate
Around 95-98% of our students pass the AWS Certification exams after training with our courses.
200k+
students
Over 200k enrollees choose Tutorials Dojo in preparing for their AWS Certification exams.
~4.8
ratings
Our courses are highly rated by our enrollees from all over the world.

What our students say about us?