This template creates a CodeArtifact domain named 'my-domain' to store repositories. It also creates two CodeArtifact repositories: 'my-repo' and 'my-upstream-repo' within the domain. 'my-repo' has 'my-upstream-repo' configured as an upstream repository, and 'my-upstream-repo' has an external connection to the public repository, npmjs.

CloudFormation Template