Replies: 2 comments
-
Hi, you could potentially set the env variable from code, before importing the library.
Providing the value via the config file could work too, do you want to submit a PR? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Rewriting my previous post: I re-check how to get an environment variable to work in Windows without reboot, and following Michel's suggestion,
you could potentially set the env variable from code, before importing the library.
I tested it, and it worked. For now, the solution is good enough.
Thanks,
Marco R.
From: Michael ***@***.***>
Sent: Monday, October 14, 2024 5:29 PM
To: saleweaver/python-amazon-sp-api ***@***.***>
Cc: anova-git ***@***.***>; Author ***@***.***>
Subject: Re: [saleweaver/python-amazon-sp-api] Authentication using AWS Secrets Manager on Windows other than env variable (Discussion #1560)
Hi,
you could potentially set the env variable from code, before importing the library.
os.environ[...]='your secret'
Providing the value via the config file could work too, do you want to submit a PR?
—
Reply to this email directly, view it on GitHub <#1560 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEO47GOJTS4ODRY3URRTMDLZ3QZTBAVCNFSM6AAAAABP5ZAUQWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJUGEZDKMI> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AEO47GKMBOE6COUJHNNESSDZ3QZTBA5CNFSM6AAAAABP5ZAUQWWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAU3ZUG.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to provide SP_API_AWS_SECRET_ID variable value from the credentials.yml file?
Getting the credentials from the AWS Secrets Manager works fine when the SP_API_AWS_SECRET_ID variable is an environment variable in Windows. My issue is that changing environmental variables requires a reboot, and their security is not my first choice.
What works for me:
Secrets Manager: SP_API_AWS_SECRET_ID as environment variable
Providing credentials in the code, from the credentials.yml file, or the environment variables
What does not work for me:
Secrets Manager: SP_API_AWS_SECRET_ID variable value from the credentials.yml file
Beta Was this translation helpful? Give feedback.
All reactions