35
loading...
This website collects cookies to deliver better user experience
aws codeartifact list-domains
{
"domains": []
}
aws codeartifact create-domain --domain mytestdomain
{
"domain": {
"name": "mytestdomain",
"owner": "012345678",
"arn": "arn:aws:codeartifact:eu-west-1:0123456789:domain/mytestdomain",
"status": "Active",
"createdTime": "2020–06–28T10:46:50.193000+02:00",
"encryptionKey": "arn:aws:kms:eu-west-1:0123456789:key/aaaa1111-aa11–1234–1234-aa11aa11aa11",
"repositoryCount": 0,
"assetSizeBytes": 0
}
}
aws codeartifact list-domains
{
"domains": [
{
"name": "mytestdomain",
"owner": "0123456789",
"status": "Active",
"encryptionKey": "arn:aws:kms:eu-west-1:0123456789:key/aaaa1111-aa11–1234–1234-aa11aa11aa11"
}
]
}
aws codeartifact describe-domain --domain mytestdomain
{
"domain": {
"name": "mytestdomain",
"owner": "0123456789",
"arn": "arn:aws:codeartifact:eu-west-1: 0123456789:domain/mytestdomain",
"status": "Active",
"createdTime": "2020–06–28T10:46:50.193000+02:00",
"encryptionKey": "arn:aws:kms:eu-west-1:0123456789:key/aaaa1111-aa11–1234–1234-aa11aa11aa11",
"repositoryCount": 0,
"assetSizeBytes": 0
}
}
aws codeartifact create-repository --domain mytestdomain --repository "mymainrepo" --description "Main repository"
{
"repository":
{
"name": "mymainrepo",
"administratorAccount": "01234567890",
"domainName": "mytestdomain",
"domainOwner": "01234567890",
"arn": "arn:aws:codeartifact:eu-west-1: 01234567890:repository/mytestdomain/mymainrepo",
"description": "Main repository",
"upstreams": [],
"externalConnections": []
}
}
aws codeartifact list-repositories
aws codeartifact describe-repository --domain mytestdomain --repository mymainrepo
aws codeartifact login --tool pip --repository mymainrepo --domain mytestdomain --domain-owner 01234567890
Successfully logged in to codeartifact for pip.
aws codeartifact get-authorization-token --domain mytestdomain --domain-owner 0123456789 --query authorizationToken --output text
pip config set global.index-url [https://aws:HEREGOESTHETOKEN@mytestdomain-0123456789.d.codeartifact.eu-west-1.amazonaws.com/pypi/mymainrepo/simple/](https://aws:HEREGOESTHETOKEN@mytestdomain-0123456789.d.codeartifact.eu-west-1.amazonaws.com/pypi/mymainrepo/simple/)
Writing to C:\Users\pawel\AppData\Roaming\pip\pip.ini
aws codeartifact update-repository --repository mymainrepo --domain mytestdomain --domain-owner 0123456789 --upstreams repositoryName=pypi-store repositoryName=npm-store
{
"repository": {
"name": "mymainrepo",
"administratorAccount": "0123456789",
"domainName": "mytestdomain",
"domainOwner": "0123456789",
"arn": "arn:aws:codeartifact:eu-west-1:0123456789:repository/mytestdomain/mymainrepo",
"description": "Main repository",
"upstreams": [
{
"repositoryName": "pypi-store"
},
{
"repositoryName": "npm-store"
}
],
"externalConnections": []
}
}
aws codeartifact associate-external-connection --domain mytestdomain --domain-owner 0123456789 --repository pypi-store --external-connection "public:pypi"
aws codeartifact associate-external-connection --domain mytestdomain --domain-owner 0123456789 --repository npm-store --external-connection “public:npmjs”
pip install awscli
Looking in indexes: [https://aws:****@mytestdomain-0123456789.d.codeartifact.eu-west-1.amazonaws.com/pypi/mymainrepo/simple/](https://aws:****@mytestdomain-043144402336.d.codeartifact.eu-west-1.amazonaws.com/pypi/mymainrepo/simple/)
Collecting awscli