Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables override #819

Closed
s1moe2 opened this issue Mar 25, 2024 · 4 comments
Closed

Environment variables override #819

s1moe2 opened this issue Mar 25, 2024 · 4 comments

Comments

@s1moe2
Copy link
Contributor

s1moe2 commented Mar 25, 2024

I'm currently deploying the PR agent according to the docs but I would like set the secrets via environment variables instead of having them built into the Docker image.
The problem is that AWS Lambda env vars cannot have "." in the name. This means I can't create vars such as GITHUB.WEBHOOK_SECRET.

However, I'm not sure I'm doing this right.
I took a look at the code but I'm not that familiar with Dynaconf so I can't figure out if I need to set variables as GITHUB.WEBHOOK_SECRET to override the toml configuration of it's a different pattern (that eventually is accepted by Lambda).

Appreciate the help!

@mrT23
Copy link
Collaborator

mrT23 commented Mar 26, 2024

Have you tried this:
image

?

@s1moe2
Copy link
Contributor Author

s1moe2 commented Mar 26, 2024

Awesome. Thanks for confirming this.

@s1moe2 s1moe2 closed this as completed Mar 26, 2024
@mrT23
Copy link
Collaborator

mrT23 commented Mar 26, 2024

it worked ? can i add this trick to the docs ?

@s1moe2
Copy link
Contributor Author

s1moe2 commented Mar 26, 2024

@mrT23 Sorry, I was under the impression you were confirming this works.
Yes, it works
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants