Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AWSTemplateFormatVersion: 2010-09-09
Parameters:
DomainName:
Type: String
AllowedPattern: "^[a-z][a-z0-9-]{0,48}[a-z0-9]$"
RepositoryName:
Type: String
AllowedPattern: "^[A-Za-z0-9][A-Za-z0-9._-]{1,99}$"
Default: main
Resources:
Domain:
Type: AWS::CodeArtifact::Domain
Condition: CreateNewDomain
Properties:
DomainName: !Ref DomainName
Repository:
Type: AWS::CodeArtifact::Repository
DependsOn: Domain
Properties:
DomainName: !Ref DomainName
DomainOwner: !Ref AWS::AccountId
RepositoryName: !Ref RepositoryName
ExternalConnections:
- public:pypi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment