Skip to content

CodeArtifact

CloudMock emulates AWS CodeArtifact, supporting domain and repository management, package listing, authorization tokens, and tagging.

OperationStatusNotes
CreateDomainSupportedCreates a domain
DescribeDomainSupportedReturns domain details
ListDomainsSupportedLists all domains
DeleteDomainSupportedDeletes a domain
CreateRepositorySupportedCreates a repository
DescribeRepositorySupportedReturns repository details
ListRepositoriesSupportedLists all repositories
DeleteRepositorySupportedDeletes a repository
DescribePackageSupportedReturns package details
ListPackagesSupportedLists packages in a repository
ListPackageVersionsSupportedLists versions of a package
DescribePackageVersionSupportedReturns package version details
GetRepositoryEndpointSupportedReturns the repository endpoint URL
GetAuthorizationTokenSupportedReturns a stub authorization token
TagResourceSupportedAdds tags to a resource
UntagResourceSupportedRemoves tags from a resource
ListTagsForResourceSupportedLists tags for a resource
import { CodeartifactClient, CreateDomainCommand, CreateRepositoryCommand } from '@aws-sdk/client-codeartifact';
const client = new CodeartifactClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateDomainCommand({ domain: 'my-domain' }));
await client.send(new CreateRepositoryCommand({
domain: 'my-domain',
repository: 'my-repo',
}));
import boto3
client = boto3.client('codeartifact',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_domain(domain='my-domain')
client.create_repository(domain='my-domain', repository='my-repo')
cloudmock.yml
services:
codeartifact:
enabled: true
  • Authorization tokens are stubs and cannot be used with real package managers
  • Package publishing is not supported; packages must be pre-seeded
  • Repository endpoints are placeholders