Environment Variable configuration #250
-
Is it possible to set up Cognito in C# using middleware, with the configuration sourced from environment variables instead of the appsettings? This approach would simplify the process for Infrastructure as Code (IAC) by allowing values to be written to environment variables rather than requiring modifications to the appsettings dynamically in a CICD pipeline.. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
-
This has been sorted out. I added a prefix of AWS__ (double underscore) in the environment variables: "AWS__Region": "", |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
This has been sorted out. I added a prefix of AWS__ (double underscore) in the environment variables:
"AWS__Region": "",
"AWS__UserPoolClientId": "",
"AWS__UserPoolClientSecret": "",
"AWS__UserPoolId": ""