Skip to content

CodeConnections

CloudMock emulates AWS CodeConnections (formerly CodeStar Connections), supporting connection and host management with tagging.

OperationStatusNotes
CreateConnectionSupportedCreates a connection
GetConnectionSupportedReturns connection details
ListConnectionsSupportedLists all connections
DeleteConnectionSupportedDeletes a connection
UpdateConnectionStatusSupportedUpdates connection status
CreateHostSupportedCreates a host
GetHostSupportedReturns host details
ListHostsSupportedLists all hosts
DeleteHostSupportedDeletes a host
TagResourceSupportedAdds tags to a resource
UntagResourceSupportedRemoves tags from a resource
ListTagsForResourceSupportedLists tags for a resource
import { CodeConnectionsClient, CreateConnectionCommand } from '@aws-sdk/client-codeconnections';
const client = new CodeConnectionsClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
const { ConnectionArn } = await client.send(new CreateConnectionCommand({
ConnectionName: 'my-github-connection',
ProviderType: 'GitHub',
}));
console.log(ConnectionArn);
import boto3
client = boto3.client('codeconnections',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
response = client.create_connection(
ConnectionName='my-github-connection',
ProviderType='GitHub')
print(response['ConnectionArn'])
cloudmock.yml
services:
codeconnections:
enabled: true
  • Connections are never actually authenticated with the provider
  • Connection status must be manually updated; no OAuth flow is performed
  • Hosts are stored but do not connect to real VPC infrastructure