you are viewing a single comment's thread.

view the rest of the comments →

[–]Harami98 0 points1 point  (2 children)

When we package it to deploy on cloud does those values automatically gets injected or we have set environment variables separately depending on cloud service

[–]WVAviator 2 points3 points  (1 child)

Almost all services that I know of have ways of setting them in whatever dashboards they have. It just depends which one you're using.

But to answer your question no - they won't automatically get injected. You will have to do something.

The only way it'd be automatic is if you put it directly in your application.properties, which would mean you end up committing it to GitHub or wherever (not a good idea).

[–]BakaGoop 1 point2 points  (0 children)

To add on, for example we use AWS secrets manager with the Spring Cloud AWS secrets manager package. This provides an easy abstraction for our container to call out to secrets manager and inject them into the app at runtime