Created
February 16, 2022 14:29
-
-
Save brysontyrrell/0189589257a43309186ea7145382f075 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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