I am deploying my app using AWS Amplify. I decided to separate my a part of my app into a submodule. Now, when I build run git submodule update --init --recursive
in the build of Amplify, it gives me an access error since it is a private repository and AWS could not access it.
I have two choices, one is using the https
to fetch the repo, but it will require me to put my username and password in the submodule. Or figure out a way for AWS to generate an SSH key that I can pair to the submodule SSH access to proceed. I would like to use the latter, but I have no idea how to do it in AWS Amplify.
preBuild
phase - so the build fails before I can even inject the SSH key – Ausgleich