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.
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













