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
Project ID:
N/A
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!Access to code artifact is necessary for the build, but not runtime
The solution you provided might work
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!
Do you know who that was? It might be someone from our team...lol
one sec let me find the thread
here it is https://discord.com/channels/713503345364697088/1209493982879686726
nope, that's someone else
haha alright, just goes to show that its definitely a needed feature then!