我们正在尝试使用ELB Classic和Auto Scaling Group运行AWS CodeDeploy。我们正在使用aws Github示例脚本:deregister_from_elb.sh和register_with_elb.sh,如 []中所述,但CodeDeploy返回以下错误:
LifecycleEvent - ApplicationStop脚本 - \ DeployHelper \ deregister_from_elb.bat [stderr] /cygdrive/c/ProgramData\Amazon\CodeDeploy\dbfa703d-7f11-4b76-9600-789231415d43\d-U1DS4LVHN\deployment-archive\DeployHelper/common_functions.sh: 第112行:curl:找不到命令[stderr] /cygdrive/c/ProgramData\Amazon\CodeDeploy\dbfa703d-7f11-4b76-9600-789231415d43\d-U1DS4LVHN\deployment-archive\DeployHelper/common_functions.sh: 第112行:curl:找不到命令[stderr]运行AWS CLI 地区:[stderr] /cygdrive/c/ProgramData\Amazon\CodeDeploy\dbfa703d-7f11-4b76-9600-789231415d43\d-U1DS4LVHN\deployment-archive\DeployHelper/common_functions.sh: 第723行:curl:找不到命令[stderr] [致命]无法得到这个 实例的ID;不能继续。
答案 0 :(得分:1)
curl: command not found
如果未安装,请安装curl
并使用curl
的绝对路径,然后重试。
[标准错误] /cygdrive/c/ProgramData\Amazon\CodeDeploy\dbfa703d-7f11-4b76-9600-789231415d43\d-U1DS4LVHN\deployment-archive\DeployHelper/common_functions.sh: 第112行: curl:未找到命令 [stderr]
[标准错误] /cygdrive/c/ProgramData\Amazon\CodeDeploy\dbfa703d-7f11-4b76-9600-789231415d43\d-U1DS4LVHN\deployment-archive\DeployHelper/common_functions.sh: 第723行: curl:未找到命令 [stderr]