Cloudcommit | aws codecommit list-repositories | aws codecommit create-repository | git clone
awsc1@ubuntu:~/awsauto$ aws codecommit list-repositories
{
"repositories": [
{
"repositoryName": "HelloWorld",
"repositoryId": "8d7cffad-dc17-41dc-a605-87082e603fb6"
}
]
}
===========
cat ~/.ssh/config
Host git-codecommit.us-east-1.amazonaws.com
User APKXXXXX7MVBXXXX5GALA
IdentityFile ~/.ssh/id_rsa_awsccXXXt
aws codecommit create-repository --repository-name HelloW --repository-description "Test"
ssh git-codecommit.us-east-1.amazonaws.com
...
You have successfully authenticated over SSH. You can use Git to interact with AWS CodeCommit.
git clone ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/HelloWorld
{
"repositories": [
{
"repositoryName": "HelloWorld",
"repositoryId": "8d7cffad-dc17-41dc-a605-87082e603fb6"
}
]
}
===========
cat ~/.ssh/config
Host git-codecommit.us-east-1.amazonaws.com
User APKXXXXX7MVBXXXX5GALA
IdentityFile ~/.ssh/id_rsa_awsccXXXt
ssh-keygen
aws iam upload-ssh-public-key --user-name cliuser --ssh-public-key-body "public key"
ssh git-codecommit.us-east-1.amazonaws.com
...
You have successfully authenticated over SSH. You can use Git to interact with AWS CodeCommit.
git clone ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/HelloWorld
Comments
Post a Comment