AWS Fundamentals Logo
AWS Fundamentals
AWS::CodeStarConnections::Connection

CodeStarConnections Connection

Schema for AWS::CodeStarConnections::Connection resource which can be used to connect external source providers with 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::CodeStarConnections::Connection

Resources:
  MyResource:
    Type: AWS::CodeStarConnections::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

codestar-connections:CreateConnectioncodestar-connections:TagResource

read

codestar-connections:GetConnectioncodestar-connections:ListTagsForResource

update

codestar-connections:ListTagsForResourcecodestar-connections:TagResourcecodestar-connections:UntagResource

delete

codestar-connections:DeleteConnection

list

codestar-connections:ListConnectionscodestar-connections: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

ServiceCodeStarConnections
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