Getting below error while pushing source code to aws codecommit using bitbucket.yml file.
+ git push codecommit $BITBUCKET_BRANCH
no such identity: /root/.ssh/codecommit_rsa: No such file or directory
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Hi @Abhishek Tiwari,
To use ssh keys you'll need to setup both the sender (pipelines) and the receiver (aws codecommit)
To set up ssh keys for use in pipelines you can consult our documentation here https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html
To set up ssh keys for use in aws codecommit you can consult the documentation here https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ssh-unixes.html
If you have any other questions let me know.
Cheers,
Tom
From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.
Start Learning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.