This template creates a CodeArtifact domain named 'my-domain' and a CodeArtifact repository named 'my-repo' inside it.

CloudFormation Template