简体   繁体   English

AWS Codeartifact 未指向私有存储库

[英]AWS Codeartifact not pointing to private repository

Following the AWS instructions, I can authenticate codeartifact on Linux via按照 AWS 说明,我可以通过以下方式在 Linux 上验证 codeartifact

aws codeartifact login --tool twine --repository pypi-mystore --domain mydomain --dom ain-owner xxxxxxxxxxx aws codeartifact 登录 --tool twine --repository pypi-mystore --domain mydomain --dom ain-owner xxxxxxxxxxx

But when trying to pip install some packages I get the following error: 404 Client Error: Not Found for url: https://pypi.org/simple/mypackage/但是当尝试 pip 安装一些包时,我收到以下错误:404 客户端错误:url 未找到: https://pypi.org/simple/mypackage/

It looks like its pointing to pypi instead of my private repo它看起来像是指向 pypi 而不是我的私人仓库

Any suggestions would be appreciated任何建议,将不胜感激

After successful execution of the login command, it should write to the following config file with details.成功执行登录命令后,应将详细信息写入以下配置文件。 Please confirm if this happens indeed:请确认这是否确实发生:

~/.config/pip/pip.conf

Example:例子:

» cat ~/.config/pip/pip.conf
[global]
index-url = https://<TOKEN>@my-domain-123456789012.d.codeartifact.us-east-1.amazonaws.com/pypi/pypi-store/simple/

You may want to use pip rather than twine as the tool.您可能希望使用pip而不是twine作为工具。

aws codeartifact login --tool pip --repository pypi-mystore --domain mydomain --dom ain-owner xxxxxxxxxxx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 AWS 私有存储库自动登录网站? - How to auto login into website using AWS private repository? 与 maven 存储库的 AWS CodeArtifact 集成后,AWS CodeBuild 中的 maven 构建时间增加 - Increase in maven Build time in AWS CodeBuild after integrating with AWS CodeArtifact for maven repo AWS 上的 Maven 存储库 - maven repository on AWS 如何在 AWS 中导出私钥? - how to export private key in AWS? 域未指向我在 aws lightsail 中的静态 IP 地址 - Domain is not pointing to my static ip address in aws lightsail Terraform Route 53 DNS 记录指向 AWS Aurora 读取器实例 - Terraform Route 53 DNS record pointing AWS Aurora reader instances 如何在 Dataflow Worker 上安装私有存储库? - How to install private repository on Dataflow Worker? AWS VPC 私有链接 - API 网关 - AWS VPC private link - API gateway AWS - Fargate 任务的私有地址 static IP - AWS - Private static IP address for Fargate task 如何在 CDK 中创建 NAT 网关,然后将路由添加到指向 CIDR 的私有 su.net? - How to create a NAT Gateway in CDK and then add route to a private subnet pointing CIDR to it?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM