Working with domains
This page was generated from content adapted from the AWS Developer Guide
Create a domain
Important CodeArtifact supports only symmetric KMS keys. You can't use an asymmetric KMS key to encrypt your CodeArtifact domains. For more information, see Identifying symmetric and asymmetric KMS keys. To learn how to create a new customer managed key, see Creating symmetric encryption KMS keys in the AWS Key Management Service Developer Guide. CodeArtifact does not support AWS KMS External Key Stores (XKS). Attempting to create a domain with a key ARN that refers to an AWS KMS key in an external key store will fail with a 400 (Bad Request) error.
Domain policies
Note A principal who wants to fetch packages from a repository endpoint must be granted the
ReadFromRepository
permission on the repository resource in addition to theGetAuthorizationToken
permission on the domain. Similarly, a principal who wants to publish packages to a repository endpoint must be granted thePublishPackageVersion
permission in addition toGetAuthorizationToken
. For more information about theReadFromRepository
andPublishPackageVersion
permissions, see Repository Policies.Note You don't need to create a domain policy if a domain and all its repositories are owned by a single account and only need to be used from that account.
Note You cannot grant permissions to another AWS account to update the resource policy on a domain using a resource policy, since the resource policy is ignored when calling put-domain-permissions-policy.
Tag a domain
Note To get the ARN of the domain, run the
describe-domain
command:Note To get the ARN of the domain, run the
describe-domain
command:Note To get the ARN of the domain, run the
describe-domain
command:Note If you delete a domain, all tag associations are removed from the deleted domain. You do not have to remove tags before you delete a domain.
Note To get the ARN of the domain, run the
describe-domain
command:
Last updated