I’d like to associate an SSH public key to my current user which I created from IAM Identity Center so that I can use it for AWS Code Commit.
I am the admin and root.
I’d like to associate an SSH public key to my current user which I created from IAM Identity Center so that I can use it for AWS Code Commit.
I am the admin and root.
2
Answers
Select the ‘Security Credentials’ tab -> Locate the SSH public key for AWS CodeCommit -> Click on ‘Upload Public Key’ in the upper-right corner -> Upload the previously generated public key content.
or
https://zhuanlan.zhihu.com/p/661505720
You can’t, that option is not available for IAM Identity Center users. There’s no option for that. Access to CodeCommit is managed via policy in your permission sets.
https://aws.amazon.com/blogs/devops/federated-multi-account-access-for-aws-codecommit/
You can add CodeCommit policy to your user’s permission set or you can create a separate permission set with just CodeCommit policy.
This is how it would look like if you create a separate permission set for it and having multiple permission set for a user.
After setting up the permission, you need to use
git-remote-codecommit
. You can install it using Pythonpip
.Once you login to your SSO via CLI or by exporting the temporary credentials from SSO portal, you can access your repository by: