AWS Fundamentals Logo
AWS Fundamentals
AWS::CodeArtifact::Domain

CodeArtifact Domain

The resource schema to create a CodeArtifact domain.

Properties

3 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
DomainName
string
RequiredCreate-only
PermissionsPolicyDocument
object
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe ARN of the domain.
EncryptionKeystringThe ARN of an AWS Key Management Service (AWS KMS) key associated with a domain.
NamestringThe name of the domain. This field is used for GetAtt
OwnerstringThe 12-digit account ID of the AWS account that owns the domain. This field is used for GetAtt

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CodeArtifact::Domain

Resources:
  MyResource:
    Type: AWS::CodeArtifact::Domain
    Properties:
      DomainName: "my-domainname"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

codeartifact:CreateDomaincodeartifact:DescribeDomaincodeartifact:PutDomainPermissionsPolicycodeartifact:GetDomainPermissionsPolicycodeartifact:TagResourcecodeartifact:ListTagsForResource

read

codeartifact:DescribeDomaincodeartifact:GetDomainPermissionsPolicycodeartifact:ListTagsForResource

update

codeartifact:DescribeDomaincodeartifact:PutDomainPermissionsPolicycodeartifact:DeleteDomainPermissionsPolicycodeartifact:GetDomainPermissionsPolicycodeartifact:TagResourcecodeartifact:UntagResourcecodeartifact:ListTagsForResource

delete

codeartifact:DeleteDomaincodeartifact:DescribeDomain

list

codeartifact:ListDomains

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceCodeArtifact
Properties7
Required1
TaggingSupported
Primary IDArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

DomainNameEncryptionKey

Related Resources

External Links