Closed ThomasTJdev closed 3 years ago
Well.. I had a one time use for this. We should follow AWS procedure by using environmental or the config-file. Closing the issue.
Ah, well the code generator isn't in this repo, but it takes the OpenAPI YAML as input and defines the signing proc and whatnot before generating the Nim source. I should probably add it, but it seems kinda moot since my OpenAPI module doesn't yet support the version 3.0 now used by AWS and published in the OpenAPI directory repository...
Hi @disruptek
Currently the library uses
os.getEnv("AWS_ACCESS_KEY_ID", AWS_ACCESS_KEY_ID)
for multiple procs. Any specific reason for this? I would like to be able to specify thekey
,secret
andregion
without accessing the environmental variables.If that's okay with you, I can prepare a PR. Suggestions:
atozSign()
proc for specific valuesatozSignGetValues(key="", secret="", region="")
, which checks the params for values, otherwise returns the environmentalatozSign()
proc's params withkey="", secret="", region=""
- if empty then use environmental