Questions tagged [aws-codeartifact]

132 questions
2
votes
0 answers

Export AWS codeartifact auth token and use them to restore nuget packages in docker file

In one of my csproj is consuming nuget packages from AWS codeartifact. I'm suppose to run this in docker. I'm trying to restore nuget from AWS codeartifact in dockerfile.( As shown below) RUN dotnet restore test.csproj -nowarn:msb3202,nul50 -s -s…
2
votes
1 answer

AWS CodeArtifact error with 401 Unauthorized when trying to upload with twine

I'm having issues pushing python package into CodeArtifact using twine. I would love your ideas on what this might be and how to debug this. I've setup the repository following this doc. Running aws codeartifact login --tool twine is successful and…
polo
  • 1,352
  • 2
  • 16
  • 35
2
votes
0 answers

Publish snapshot Jar in codeArtifact returns bad request

I am starting to evaluate AWS codeArtifact service. Currently I am hosting maven artifacts in an on-premises Nexus repository. We use snapshots and release artifacts as expected using gradle to describe project's dependencies and repositories to…
2
votes
1 answer

Can Poetry add package from AWS CodeArtifact

I find multiple answers for how to publish package using Python Poetry to CodeArtifact and this is quite simple. But now I try to add the published package poetry add sample-package and it does not work. Poetry error: Could not find a matching…
andnik
  • 2,405
  • 2
  • 22
  • 33
2
votes
1 answer

README of a Maven package is not presented at AWS CodeArtifact

I wish to present a README file on CodeArtifact. I deployed a new version that contains a README.MD file however the Description (marked in red) is greyed out. Found this AWS documentation however I did not understand what I should do to present my…
Cohensius
  • 385
  • 7
  • 18
2
votes
0 answers

codeartifact cleanup / remove multiple packages - or how to skip it for some pip install packages?

Does anyone know a simple way to cleanup codeartifact? I use it as relay (external connection) for python packages (pypi-store) as I don't see a way to use codeartifact only for private packages. Means if I install a private package from…
Andreas
  • 523
  • 5
  • 15
2
votes
1 answer

Amplify build fails with "Request failed 401 Unauthorized"

I am building an amplify react app and trying to connect it to my private npm packages in my CodeArtifact repository. In the build file amplify.yml, I added preBuild: commands: - aws codeartifact login --tool npm --repository myrepo…
2
votes
1 answer

AWS CLI CodeArtifact : What value to supply for --package flag for list-package-versions subcommand

Problem Statement I am trying to see what versions have been deployed for a specific Maven package in AWS CodeArtifact. I do not have the ability to view anything through the web GUI so I am using the AWS CLI. When I run the following command aws…
Chris Maggiulli
  • 3,375
  • 26
  • 39
2
votes
1 answer

bitbucket pipeline for CodeArtifact

I am using the bitbucket pipeline to publish the artifacts to AWS code artifact, everything is running perfectly but 12 hours validity of the token needs me to update the password every time. Could anyone guide me on how I can automate this…
2
votes
1 answer

Installation of private npm package from CodeArtifact fails with "401 Unauthorized" with yarn and yarn.lock

We have a private npm package in CodeArtifact that we want to install as part of our package.json. We are using Yarn as a package manager and have a yarn.lock file to control the versions. When trying to install with yarn install --frozen-lockfile…
Lola Bach
  • 101
  • 1
  • 3
2
votes
2 answers

NPM insists on CodeArtifact, even on public registry

I'm using npmrc to setup my corporate (using CodeArtifact) and public (using registry.npmjs.org) NPM registries. The problem is that, even with the public profile selected, I keep getting an error that the authentication to CodeArtifact is missing.…
Mauricio Klein
  • 527
  • 2
  • 12
2
votes
1 answer

Installing a library from codeartifact with poetry without moving all libraries to be installed from there

My situation I have a specific library in codeartifact. I have a project (not a library) managing dependencies with poetry consuming this library. Now I need to install this library in the project but can't find instructions which Don't change the…
alonisser
  • 11,542
  • 21
  • 85
  • 139
2
votes
2 answers

Can npm be used AWS CodeArtifact for private packages, while all npm.org is used with public packages?

The docs read a bit like the developer is supposed to give over all "package registry duties" to AWS CodeArtifact. But I want to continue using npm.org for some packages. Given a javascript app that uses private and public packages, can I setup…
Ashley Coolman
  • 11,095
  • 5
  • 59
  • 81
2
votes
1 answer

How do I enable users to install Python artifacts from CodeArtifact?

I was able to use CodeBuild to build a Python package and publish that package to CodeArtifact. Now I need to enable users from the outside to install the package via pip. Is this approach possible? According to Configure clients with the login…
Jane Wayne
  • 8,205
  • 17
  • 75
  • 120
2
votes
2 answers

Publish Python Package via GitHub Actions to AWS CodeArtifact

I have a hard time to publish a package to AWS CodeArtifact. Problem is the authentification. First I tried to execute the login via the aws cli but due to the lack of the .pypirc file containing the repository settings that didn't work out. Now I…
1 2
3
8 9