Closed duffenterprises closed 3 years ago
I don't use GCP often so I'm kinda guessing here, but based on a cursory glance over the docs I think you may have to also specify GCE_PROJECT
which seems to possibly be one of the things it is complaining about.
I'm more puzzled my why it can't find the file sa.json. Are there perquisites that you don't mention in the readme?
Oh, it's likely because lego is trying to read the sa.json file IN the container but it's not passed into the container as a volume.
See https://github.com/kchristensen/udm-le/blob/master/udm-le.sh#L46-L49 for an example of how the AWS credentials directory gets passed in if you're using AWS.
Perfect. I will follow your naming convention and test. If it works out I'll prepare a PR.
https://github.com/kchristensen/udm-le/pull/23 created for this issue. Happy new year.
Just merged that, thanks for contributing! I'm sure people will find this very useful.
@kchristensen I was hoping to be able to provide a pull request with instructions for GCP, but I've run into problems. I've introduced a serviceaccount directory, with a sa.json file for interacting with GCP.
My experiments on localhost suggested that with lego, you really only needed the GCE_SERVICE_ACCOUNT_FILE to be set. I'm under the assumption that there are NO other pre-requisites to what you described in the readme.