Skip to content

Is there a way to apply environment variables in the litestream.yml file? #123

Answered by benbjohnson
junkei-okinawa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @junkei-okinawa. The config file doesn't currently allow for expanding environment variables. You don't need to set the access-key-id and secret-access-key though if you have AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY already set.

As for the other settings, what's the use case you want to use them for? Why not just write the values in directly? Or you could use envsubst to expand the values from a template YAML file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benbjohnson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants