问题标签 [aws-codecommit]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1551 浏览

aws-codecommit - AWS CodeCommit 只读访问

我想授予特定用户对 CodeCommit 存储库中某些文件夹的只读访问权限。是否可以在不授予用户列出存储库中所有其他文件夹的权限的情况下执行此操作?

0 投票
1 回答
2350 浏览

git - 是否可以使用 AWS CodeCommit 作为 GitLab 的后端 git 服务器?

我有一个很棒的GitLab部署,因为它提供了一个很棒的 GUI,但是它不像AWS CodeCommit那样可扩展或持久。

是否可以使用 CodeCommit 或其他 Git Server 作为 GitLab 的后端?

0 投票
1 回答
1602 浏览

git - 将 codecommit 与运行在 EC2 上的 jenkins 集成

我正在尝试将在 EC2 上运行的 jenkins 与我的代码提交存储库集成。

EC2 实例运行 ubuntu 14.04。我安装了 aws cli,然后安装了 jenkins,我使用 IAM 用户密钥和秘密配置了 aws,可以访问我想要构建的 codecommit 存储库。

我愚弄了这个博客 - http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-without-cli.html

但是这些命令不起作用,授予 .gitconfig 被拒绝的权限

sudo -u jenkins git config --global credential.helper '!aws codecommit credential-helper $@'

我看到了一个类似的问题 Access AWS CodeCommit from Jenkins running on EC2 (Ubuntu) 但在这个问题之后答案也不起作用。

Jenkins 无法克隆我的存储库,出现此错误
stderr: Host key verification failed。致命:无法从远程存储库中读取。

我已经在这之后一周了,我需要为我的 MEAN 应用程序创建一个持续集成服务器。

我想做的就是当存储库的主分支上有提交时

  1. EC2 服务器拉取存储库。
  2. 运行 grunt 文件
  3. 运行脚本以将 Web 应用程序上传到 S3。
  4. 使 Pm2 重新启动 nodejs 应用程序。

任何其他经过全面验证和测试以创建开发服务器持续集成的方法也将不胜感激。(很多!!)

0 投票
1 回答
2640 浏览

git - Move git project from BitBucket to AWS CodeCommit

Is there a way I can move a project that is on BitBucket to AWS CodeCommit and keep all the commit history?

0 投票
1 回答
3453 浏览

aws-codecommit - 无法使用 IAM 角色克隆 AWS CodeCommit

我的 ec2 实例有以下设置,但没有运气。

在 aws 论坛上也有同样的问题,但没有答案。

〜/ .gitconfig:

EC2 实例的 IAM 角色策略:

然后下面的代码工作:

但是,对于 git,它不会。

有任何想法吗?

更新

经过一番调查,我发现附加的 IAM 角色无法进行 git 操作,但 IAM 用户工作正常。

尝试以下命令:

  • 列表存储库

    aws codecommit list-repositories

  • 凭证助手

    echo -e "protocol=http\npath=/v1/repos/my-repo\nhost=git-codecommit.us-east-1.amazonaws.com" | aws --region=us-east-1 codecommit credential-helper get

  • git操作

    git clone --config credential.helper='!aws --region=us-east-1 codecommit credential-helper $@' --config credential.UseHttpPath=true https://git-codecommit.us-east-1.amazonaws.com/v1/repos/my-repo

我的 awscli 版本如下:

更新2

我的 git 和 curl 版本如下:

0 投票
1 回答
1062 浏览

amazon-web-services - 将文件从 CodeCommit 部署到 S3

我想将推送到我的 CodeCommit 存储库中的某些文件部署到 S3 存储桶中。我正在尝试使用 repo 上的 Lambda 触发器来执行此操作。但是,我无法获取提交中更改的文件列表,也无法使用 AWS CodeCommit API 从 CodeCommit 请求特定文件。

任何建议将不胜感激!

0 投票
2 回答
1299 浏览

git - 错误:C:\Program Files (x86)\PuTTY\plink.exe 的 waitpid 失败:没有子进程

在此处输入图像描述 在此处输入图像描述

我正在尝试连接到 Codecommit 服务器。我收到以下错误。连接来自 Windows 服务器。当我尝试使用其他类似机器时,我没有收到错误消息。这在开始时运行良好,但意外地发展了这个问题。

检查连接...完成。

0 投票
1 回答
187 浏览

git - using AWS CodeCommit for website development

I have a client who wants to use multiple developers to work on a wordpress website that is currently hosted on an AWS EC2 instance. Is using CodeCommit the right tool to use in order to have proper version control on this project? I get that is works through GIT and you can push files etc. But is it possible to apply the current EC2 site to CodeCommit including the database?

0 投票
1 回答
122 浏览

c# - NGIT:克隆 CodeCommit 存储库

抱歉,我正在尝试使用 NGit 克隆 CodeCommit 存储库。也许我需要使用自定义 CredentialProvider,但是如何?如果需要,我可以更改为 C# 中的任何其他 GIT 库关于如何执行此操作的任何想法?谢谢你,加布里埃尔

0 投票
1 回答
376 浏览

git - AWS CodeCommit 不适用于 OSX 上的 HTTPS

遵循https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-unixes.html后,尝试克隆时出现以下错误:

这就是我的 .gitconfig 中的内容:

我在 OSX El Capitan 上。