Module Reference

CodeArtifact — Package Registry

Private npm and PyPI package registries with GitHub Actions OIDC authentication.

Production

Directory: global/codeartifact/

Files: main.tf, iam.tf, outputs.tf, variables.tf

What It Manages

A centralized private package registry for internal Ontopix packages, with GitHub Actions OIDC roles for CI/CD access.

Domain

Domain: ontopix

Repositories

RepositoryTypePurpose
npmInternalInternal npm packages
npm-upstreamProxyUpstream proxy to public npmjs
pypiInternalInternal Python packages
pypi-upstreamProxyUpstream proxy to public PyPI

Internal repositories are configured with upstream proxies, so they serve both private packages and cached public packages.

OIDC Roles

RoleNameTierPermissionsRestricted To
ReadGitHubActions-CodeArtifact-ReadRoleCIRead packagesAny branch, all ontopix/* repos
PublishGitHubActions-CodeArtifact-PublishRoleDeploy + ReleaseRead + publishDeploy branches (master/pre/dev) and tags (refs/tags/*), all ontopix/* repos

IAM Policies

PolicyKey Permissions
CodeArtifactReadAccessGetAuthorizationToken, ReadFromRepository, ListPackages, DescribePackageVersion
CodeArtifactWriteAccessAll read permissions + PublishPackageVersion, PutPackageMetadata

How Teams Use It

CodeArtifact is fully centralized — unlike ECR, teams do not create their own repositories. Both npm and PyPI repositories are shared across the organization.

For detailed setup instructions, see the CodeArtifact + GitHub Actions pattern in the engineering handbook.