如何在ebextensions脚本中重新启动Elastic Beanstalk实例?

时间:2018-03-14 22:55:15

标签: linux amazon-web-services elastic-beanstalk amazon-elastic-beanstalk

我需要运行rpm命令,然后运行yum update,然后重新启动实例以使更改生效。

如果我删除 03reboot 命令,我的ebextensions脚本就可以运行。当我添加它时,它失败了,我得到了事件错误:

Command failed on instance. An unexpected error has occurred [ErrorCode: 0000000001]
Unsuccessful command execution on instance id(s) '<id>'. Aborting the operation.

commands:
    03reboot:
        command: shutdown -r now

是否有首选方法在ebextensions配置中发出重启?

1 个答案:

答案 0 :(得分:0)

答案是你没有。 AWS支持的建议是使用您预先配置并使用的自定义AMI,以备将来更换。