我正在运行以下命令来执行从jenkins到EC2服务器的代码部署
aws deploy create-deployment --application-name $APPNAME --s3-location bucket=$S3BUCKET,key=chefdeployment.zip,bundleType=zip --deployment-group-name $DEPLOYMENTGROUPNAME --deployment-config-name CodeDeployDefault.HalfAtATime --description "Deploy" --region us-east-1 --profile $PROFILE --output text
我收到以下错误
A client error (InstanceIdRequiredException) occurred when calling the GetDeploymentInstance operation: Instance ID is Missing.
之前有没有人见过这个错误?
答案 0 :(得分:1)
InstanceIdRequiredException似乎不是我们从CLI调用create-deployment时抛出的异常。
调用get-deployment-instance时,似乎抛出了异常,并且需要instanceId。以下是参考文档:http://docs.aws.amazon.com/cli/latest/reference/deploy/get-deployment-instance.html