Is there any way to create a distinction between the variables defined for a build vs runtime?

I want my build to use a different AWS access key from my application (during runtime)
8 Replies
Percy
Percy10mo ago
Project ID: N/A
Brody
Brody10mo ago
would it be possible for you to have two service variables set, something like AWS_KEY_BUILD and AWS_KEY_RUNTIME and have your build only use the environment variable thats designated for build then during runtime it would use the variable designated for runtime? i would also love to hear what the underlying usecase is here!
purduemike
purduemikeOP10mo ago
Access to code artifact is necessary for the build, but not runtime The solution you provided might work
Brody
Brody10mo ago
you are the second person to ask for a way to separate build and runtime variables today, so the team has their eyes on this. and thanks for sharing your use case!
purduemike
purduemikeOP10mo ago
Do you know who that was? It might be someone from our team...lol
Brody
Brody10mo ago
purduemike
purduemikeOP10mo ago
nope, that's someone else
Brody
Brody10mo ago
haha alright, just goes to show that its definitely a needed feature then!
Want results from more Discord servers?
Add your server