AWS Fundamentals Logo
AWS Fundamentals
AWS::CodeConnections::Connection

CodeConnections Connection

Schema for AWS::CodeConnections::Connection resource which can be used to connect external source providers with other AWS services (i.e. AWS CodePipeline)

Properties

4 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
ConnectionName
string
RequiredCreate-only
HostArn
string
Create-only
ProviderType
string
Create-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ConnectionArnstringThe Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between AWS services.
ConnectionStatusstringThe current status of the connection.
OwnerAccountIdstringThe name of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CodeConnections::Connection

Resources:
  MyResource:
    Type: AWS::CodeConnections::Connection
    Properties:
      ConnectionName: "my-connectionname"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

codeconnections:CreateConnectioncodeconnections:TagResource

read

codeconnections:GetConnectioncodeconnections:ListTagsForResource

update

codeconnections:ListTagsForResourcecodeconnections:TagResourcecodeconnections:UntagResource

delete

codeconnections:DeleteConnection

list

codeconnections:ListConnectionscodeconnections:ListTagsForResource

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceCodeConnections
Properties7
Required1
TaggingSupported
Primary IDConnectionArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

ConnectionNameProviderTypeHostArn

External Links