简体   繁体   English

为 AWS CodeCommit 生成 HTTPS Git 凭证:AWS 编程访问

[英]Generate HTTPS Git credentials for AWS CodeCommit: AWS Programmatic access

Question.题。 I want to restrict some AWS CodeCommit user's AWS console access.我想限制一些 AWS CodeCommit 用户的 AWS 控制台访问。 If I give them "AWS Programmatic access", how can they generate Git the password to use AWS CodeCommit?如果我给他们“AWS 编程访问”,他们如何生成 Git 密码以使用 AWS CodeCommit? How can I achieve this by not giving them AWS console access?如何通过不授予他们 AWS 控制台访问权限来实现这一目标?

The steps to achieve your requirement:实现您的要求的步骤:

  1. Create an IAM User with access key ID and a secret access key (No need to provide these secrets to your users)创建具有访问密钥 ID 和秘密访问密钥的 IAM 用户(无需向您的用户提供这些秘密)
  2. Attach 'AWSCodeCommitFullAccess' permission to this IAM User将“AWSCodeCommitFullAccess”权限附加到此 IAM 用户
  3. Create Git Username and Password in AWS IAM Console.在 AWS IAM 控制台中创建 Git 用户名和密码。 This is your secret sauce to access CodeCommit这是您访问 CodeCommit 的秘诀
  4. Provide your users with Repo clone URL (HTTPS) and their Git username and password (created in Step-3)为您的用户提供 Repo 克隆 URL (HTTPS) 及其 Git 用户名和密码(在步骤 3 中创建)

These steps are presented here in elaborate details: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-gc.html这些步骤在此处详细介绍: https : //docs.aws.amazon.com/codecommit/latest/userguide/setting-up-gc.html

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM