aws / ec2-image-builder-roadmap

Public Roadmap for EC2 Image Builder.
Other
34 stars 7 forks source link

Component Execution fails when clone private repo from oganization #79

Closed Hoainam25699 closed 2 years ago

Hoainam25699 commented 2 years ago

New Document

Community Note

Tell us about your request

I am trying to clone code from MY ORGANIZATION PRIVATE REPO by using GITHUB DEPLOY KEY. Step (ExecuteBash) Result
aws ssm get-parameter --region xxx --name xxx ..... >> ~/.ssh/id_ed25519 Command execution was completed successfully
touch ~/.ssh/config && sudo chmod 600 ~/.ssh/config && sudo chmod 600 ~/.ssh/id_ed25519 Command execution was completed successfully
echo "Host github.com" >> ~/.ssh/config Command execution was completed successfully
echo "HostName github.com" >> ~/.ssh/config Command execution was completed successfully
echo "IdentityFile ~/.ssh/id_ed25519" >> ~/.ssh/config Command execution was completed successfully
ssh-keyscan github.com >> ~/.ssh/known_hosts Command execution was completed successfully
eval $(ssh-agent -s) Command execution was completed successfully
ssh-add Command execution was completed successfully
ssh -T git@github.com Hi organization-name/repo-name! You've successfully authenticated, but GitHub does not provide shell access
git clone git@github.com:organization-name/repo-name.git Warning: Permanently added the ECDSA host key for IP address '20.27.177.113' to the list of known hosts. ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Exit code 128

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?

Expected behavior

ImageBuilder can clone code from organization private repo using github deploy key.