CodeArtifact domains
In AWS CodeArtifact, before you create a repository to store your artifacts, you need to create a domain. A domain is a group of repositories, so within a domain, you can create more than one repository. A domain provides a level of abstraction on top of a repository, so you can apply policies directly to the domain and they will be applicable to all repositories within the domain. The following diagram shows how you can have multiple domains within the CodeArtifact service and in a single domain you can create multiple repositories:
Figure 7.2 – CodeArtifact domain
Several repositories contain your packages. AWS CodeArtifact can be shared within organizations across AWS accounts. Even if an artifact is available in multiple repositories, a domain ensures that it is stored only once, so it saves on the storage cost. Having a domain allows you to create repositories with your choice of name, as repository names need to be unique...