在dev / uat / prod中部署应用程序时,使用.ebextensions运行命令

时间:2019-09-20 04:42:48

标签: .net amazon-web-services amazon-elastic-beanstalk ebextensions

我们先前在Web.config/web.dev.config/web.uat.config/web.prod.config中拥有纯文本凭据。

出于安全原因,我们使用webfarms aspnet_regiis.exe对配置文件进行了加密。

我能够导出RSA密钥,并且在其他计算机上也能够导入该rsa密钥,并能够使用加密的web.config在本地运行应用程序。

在Dev / UAT / Prod方面,我仍然被禁止使用受尊敬的加密配置。

有人可以帮助我用相应的env.config创建.ebextensions文件夹,并在所需的命令中在相应的环境中删除应用程序时执行这些命令。

我已经看到了很多使用option_settings,commands,container_commands的人可以帮助我的例子。任何帮助都将不胜感激!

2019-09-19 21:54:07 UTC-0500    ERROR   During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
2019-09-19 21:54:07 UTC-0500    ERROR   Failed to deploy application.
2019-09-19 21:54:07 UTC-0500    ERROR   Unsuccessful command execution on instance id(s) 'i-05cfe5cd516716371'. Aborting the operation.
2019-09-19 21:54:07 UTC-0500    INFO    Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2019-09-19 21:54:07 UTC-0500    ERROR   [Instance: i-xxxxxxxxxxx ConfigSet: Infra-EmbeddedPreBuild, Hook-PostInit, Hook-PreAppDeploy, Infra-EmbeddedPostBuild, Hook-EnactAppDeploy, Hook-PostAppDeploy, Infra-WriteVersionOnStartup] Command failed on instance. Return code: 1 Output: null.
2019-09-19 21:54:05 UTC-0500    ERROR   Error occurred during build: Command hooks failed
2019-09-19 21:54:03 UTC-0500    ERROR   Deployment Failed: Unexpected Exception

0 个答案:

没有答案