Skip to content

Instantly share code, notes, and snippets.

@brysontyrrell
Created February 16, 2022 14:29
Show Gist options
  • Save brysontyrrell/0189589257a43309186ea7145382f075 to your computer and use it in GitHub Desktop.
Save brysontyrrell/0189589257a43309186ea7145382f075 to your computer and use it in GitHub Desktop.
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