AWS::CodeArtifact::RepositoryThe resource schema to create a CodeArtifact repository.
7 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
DomainName | string | RequiredCreate-only |
RepositoryName | string | RequiredCreate-only |
Description | string | |
ExternalConnections | Array<string> | |
PermissionsPolicyDocument | object | |
Tags | Array<Tag> | |
Upstreams | Array<string> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | The ARN of the repository. |
DomainOwner | string | The 12-digit account ID of the AWS account that owns the domain. |
Name | string | The name of the repository. This is used for GetAtt |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CodeArtifact::Repository
Resources:
MyResource:
Type: AWS::CodeArtifact::Repository
Properties:
RepositoryName: "my-repositoryname"
DomainName: "my-domainname"
Tags:
- Key: Environment
Value: Production
Description: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
codeartifact:CreateRepositorycodeartifact:DescribeRepositorycodeartifact:PutRepositoryPermissionsPolicycodeartifact:GetRepositoryPermissionsPolicycodeartifact:AssociateExternalConnectioncodeartifact:AssociateWithDownstreamRepositorycodeartifact:TagResourcecodeartifact:ListTagsForResourcecodeartifact:DescribeRepositorycodeartifact:GetRepositoryPermissionsPolicycodeartifact:ListTagsForResourcecodeartifact:PutRepositoryPermissionsPolicycodeartifact:GetRepositoryPermissionsPolicycodeartifact:DeleteRepositoryPermissionsPolicycodeartifact:AssociateExternalConnectioncodeartifact:DisassociateExternalConnectioncodeartifact:UpdateRepositorycodeartifact:DescribeRepositorycodeartifact:AssociateWithDownstreamRepositorycodeartifact:DeleteRepositorycodeartifact:DescribeRepositorycodeartifact:ListRepositoriesOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
RepositoryNameDomainNameDomainOwner