[英]Deployment of a spring boot application on AWS EB with RDS
New to AWS EB and RDS. AWS EB和RDS的新功能。
My spring boot app is currently having one profile of datasource to connect to the local mysql. 我的spring boot应用程序当前具有一个数据源配置文件以连接到本地mysql。 I have initialised the RDS and configured RDS endpoint in my local profile before packaging.
打包之前,我已经在本地配置文件中初始化了RDS并配置了RDS端点。 Maven packaging fails because it runs test with the production datasource in local.
Maven打包失败,因为它使用本地的生产数据源运行测试。
I could see below solutions to the issue, but not tried. 我可以在下面看到该问题的解决方案,但没有尝试过。
Please advice me with the right approach. 请以正确的方法建议我。
My preferences goes toward making your test phase environment independent, so it does not make a different to build for Dev, Test or Prod. 我的偏好是使您的测试阶段环境独立,因此为Dev,Test或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. 2 + 3我更喜欢不绑定到环境的软件包,并使用Puppet之类的工具在部署过程中注入特定于环境的配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.