Questions tagged [aws-codeartifact]
132 questions
28
votes
1 answer
How to delete a package from AWS CodeArtifact?
In AWS documentation is crystal clear how to delete a package version, ok.
But, how can I delete a package?
I've uploaded a package with a wrong name, I've deleted the only version of it, now I can see a package without any version but I can't find…

Daniele Ricci
- 15,422
- 1
- 27
- 55
16
votes
2 answers
How to use AWS CodeArtifact *within* A Dockerfile in AWSCodeBuild
I am trying to do a pip install from codeartifact from within a dockerbuild in aws codebuild.
This article does not quite solve my problem: https://docs.aws.amazon.com/codeartifact/latest/ug/using-python-packages-in-codebuild.html
The login to AWS…

Tommy
- 12,588
- 14
- 59
- 110
14
votes
3 answers
AWS CodeArtifact token update
I created AWS CodeArtifact repository, obtained token with aws codeartifact get-authorization-token command, and set it correctly to .m2/settings.xml (my project is using maven as build tool & package manager).
The problem is that the token expires…

Nemanja Žunić
- 181
- 2
- 8
13
votes
4 answers
How can I publish Python packages to CodeArtifact using Poetry?
Trying to publish a Poetry package to AWS CodeArtifact. It supports pip which should indicate that it supports poetry as well since poetry can upload to PyPi servers.
I've configured the domain like so:
export CODEARTIFACT_AUTH_TOKEN=`aws…

Shay Nehmad
- 1,103
- 1
- 12
- 25
10
votes
4 answers
Cross account access to a CodeArtifact repo
I have an IAM user in account A with admin privileges and arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccess attached for good measure.
The iam user from account A has an arn of arn:aws:iam::***:user/test-user.
Account B has a CodeArtifact repo…

brno32
- 414
- 5
- 17
9
votes
0 answers
Apache Maven get server password by executing external command
AWS CodeArtifact, for example, authenticates with a token valid for 12 hours. A typical setup of maven with CodeArtifact is:
my-domain--my-repo
aws
…

bagratte
- 157
- 2
- 5
8
votes
2 answers
Yarn re-load or pass new config after 'preinstall'
I'm trying to utilize a private repo using AWS CodeArtifact. The instructions there mention executing a aws-cli npm login command. This login command grabs a token from AWS and places it in the users .npmrc.
I had tried to put this login function in…

nlloyd
- 1,966
- 2
- 15
- 18
7
votes
3 answers
NPM always uses AWS Codeartifact
I have some different projects in my local machine. Some of then uses AWS Codeartifact to download private dependencies in AWS Codeartifact, and others do not use. The projects that uses AWS Codeartifact manage their dependencies with Yarn, and my…

Matheus Carvalho
- 415
- 7
- 13
6
votes
3 answers
Dependabot with AWS CodeArtifact
I'm trying to use Dependabot with AWS CodeArtifact and I keep getting authentication issues.
Dependabot can't authenticate to a private package registry
The following private package registry was used and caused the update to fail:…

Cae Vecchi
- 868
- 1
- 10
- 19
6
votes
1 answer
AWS CodeArtifact: mvn deploy:deploy-file Failed to deploy artifacts: Could not transfer artifact 401 Unauthorized
I have an issue while trying to publish a java library (jar) to an AWS CodeArtifact Maven repository. I get HTTP Status code 401 (unauthorized) when I try to publish it. Which would indicate that I'm doing something wrong like a missing…

Pierre
- 2,335
- 22
- 40
6
votes
0 answers
AWS codeartifact Failed to update checksum metadata
I need help with the configuration of the code artifact, whenever I try to deploy through maven it shows an error [WARNING] Failed to upload checksum maven-metadata.xml. But artifacts still get published in the snapshot with status build success.
Is…

Mohsin Ijaz
- 111
- 6
6
votes
2 answers
How do I make access to a AWS CodeArtifact repository public / public in VPC, without need of credentials?
I need a package repository for my companies Python packages. I've setup a AWS CodeArtifact repository and managed to publish&install my packages.
To enable pip to use this repository, AWS recommends one of the following:
aws codeartifact login…

marqram
- 725
- 12
- 26
6
votes
0 answers
How to update environment variable in IntelliJ
We are using AWS CodeArtifact to store our maven dependencies. Also, the company I work for uses temporary access keys to access aws. To make a long story short, every hour you have to run a script that updates your ~/.aws/credentials with the new…

Jörgen Lundberg
- 1,799
- 3
- 22
- 31
5
votes
2 answers
How to run AWS codeartifact login and keep default registry
I run this commande in a package.json file (scripts > preinstall) or (scripts > prepare):
aws codeartifact login --tool npm --repository my-repo --domain my-domain --domain-owner <123456789> --profile
full file: (<123456789> and is…

Stéphane GRILLON
- 11,140
- 10
- 85
- 154
5
votes
3 answers
Publish artifact to AWS CodeArtifact with sbt
I'm trying to publish artifacts to AWS CodeArtifact using sbt, but I'm having some troubles;
Given an sbt project, running the command sbt publish the package is uploaded to the repo but It remains in the Unfinished state. The AWS CodeArtifact…

A. F.
- 133
- 1
- 8