Do I actually have to ssh into the instance it spawns and setup git manually?
Hey All -
I'm running into an issue with git authentication.
I've setup the aws_autoscaler.py with a corresponding aws_autoscaler.yaml file. I pass in the git password (actually a gitlab token) and the git username in the yaml file. The autoscaler does seem to work as it does correctly spawn up an EC2 instance and installs the Dockerfile on the instance, etc. However I get the following error:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
1) Make sure you pushed the requested commit: ...
2) Check if remote-worker has valid credentials [see worker configuration file]
I don't think the issue is 1. because the commit works. My gitlab token is assigned full maintainer rights, so I don't think that's the issue as well.
Something interesting though is that when I look at the logs of the job that I try to run, the agent isn't receiving the certain configuration info like git user and git password, etc as expected from the aws_autoscaler.yaml. For example in the logs I see
agent.git_user =
sdk.aws.s3.key =
sdk.aws.s3.region =
Which I do set in the aws_autoscaler.yaml file? Not really sure what's going on but any recommendations would be really helpful! Thanks!