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
Percy4mo ago
Project ID: N/A
Brody
Brody4mo 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
purduemike4mo ago
Access to code artifact is necessary for the build, but not runtime The solution you provided might work
Brody
Brody4mo 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
purduemike4mo ago
Do you know who that was? It might be someone from our team...lol
Brody
Brody4mo ago
purduemike
purduemike4mo ago
nope, that's someone else
Brody
Brody4mo ago
haha alright, just goes to show that its definitely a needed feature then!
Want results from more Discord servers?
Add your server
More Posts
Unknown errors in logsI was viewing my logs randomly and I noticed some strange errors that don't relate much to anything Urgent for Freelance Client!: On Railway, Custom Domain Not Connecting since 3 Days Now from NamecheHi everyone, I have taken all steps in the documentation and on Google and StackOverflow to connect RAILWAY_PUBLIC_DOMAIN when custom domain is setI don't have access to my account at the moment so I can't check this right now, but quick question.Brute force attackHi, I've had some sort of brute force attack on my back end server, ~5000 attempts within 10min, GetDoes the estimated bill feature take into account one off peak traffic?My project usage is about 20 USD every month. I am running a Spring Batch job that should work for ano such file or directory, open '/root/.cache/node/corepack/lastKnownGood.json'I already tried https://www.answeroverflow.com/m/1209507275006550046#solution-1209509316873289739 anNode Project not starting on the right pathWhen trying to start my Node Project, I got the error: "Error: Cannot find module '/app/dist/server.Issues with Root Directory and NextJS deployment in Turbo repoI have a turbo monorepo with a Next app I am trying to deploy. I need the paths for deployment to beIssuing TLS certificate taking too much timehello, i'm trying to use a custom domain for a deployed project, I added the CNAME record as directeno such file or directory, open '/root/.cache/node/corepack/lastKnownGI am getting this error "0.448 Internal Error: ENOENT: no such file or directory, open '/root/.cache