So I have a serverless spring boot application that I currently deploy to aws using code pipeline. This spring boot application uses a bootstrap.properties file to call a cloud config server that we are using for our properties. The problem that I'm having is that I cant figure out how to get code pipeline to deploy different bootstrap.properties files for each environment that it deploys to so that I can streamline the process and have each environment access its own properties. Does anyone know if there is a way to do this?
Asked
Active
Viewed 699 times
1 Answers
0
bootstrap-[profile].properties allow you to load diferente variables per enviroment in combination with spring profiles active
For example
(default) bootstrap.properties
(SPRING_PROFILES_ACTIVE=prod) bootstrap-prod.properties

Jorge Tovar
- 1,374
- 12
- 17