Reputation: 74
New to AWS EB and RDS.
My spring boot app is currently having one profile of datasource to connect to the local mysql. I have initialised the RDS and configured RDS endpoint in my local profile before packaging. Maven packaging fails because it runs test with the production datasource in local.
I could see below solutions to the issue, but not tried.
Please advice me with the right approach.
Upvotes: 0
Views: 258
Reputation: 1043
My preferences goes toward making your test phase environment independent, so it does not make a different to build for Dev, Test or Prod.
2 + 3 My preference goes to have packages that are not bound to an environment, and use a tool like Puppet to inject the environment specific configuration during deployment.
Upvotes: 1