Amazon web services 使用S3修订版部署AWS代码
我已经使用AWS CodeDeploy几个月了,但我一直使用git提交ID作为修订版。我没有尝试在CI服务器上成功后自动部署。他们的服务要求我们使用S3进行修订 但当我尝试使用S3时,我得到了以下下载包生命周期方法:Amazon web services 使用S3修订版部署AWS代码,amazon-web-services,amazon-s3,amazon-ec2,aws-code-deploy,Amazon Web Services,Amazon S3,Amazon Ec2,Aws Code Deploy,我已经使用AWS CodeDeploy几个月了,但我一直使用git提交ID作为修订版。我没有尝试在CI服务器上成功后自动部署。他们的服务要求我们使用S3进行修订 但当我尝试使用S3时,我得到了以下下载包生命周期方法: 对于我的CodeDeploy错误 健康约束 在我的日志ec2日志中 错误代码未知错误 脚本名 Message无法加载这样的文件--aws sdk核心/s3 木尾 我已经检查过的东西: 用户有权限--是我,我有所有权限:) EC2实例和S3 bucket位于同一区域
- 对于我的CodeDeploy错误
健康约束
- 在我的日志ec2日志中
错误代码未知错误
脚本名
Message无法加载这样的文件--aws sdk核心/s3
木尾
我已经检查过的东西:
2017-01-13 20:28:04错误[codedeploy agent(19081)]:InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller:执行期间出错:LoadError-无法加载此类文件--aws sdk core/s3-/opt/codedeploy agent/lib/instance\u agent/Plugins/codedeploy/command\u executor.rb:200:'download\u from\u s3'中
/opt/codedeploy-agent/lib/instance\u-agent/plugins/codedeploy/command\u-executor.rb:76:in'block-in'
/opt/codedeploy agent/lib/instance_agent/plugins/codedeploy/command_executor.rb:62:in'execute_command'
/opt/codedeployagent/lib/instance_agent/plugins/codedeploy/command_poller.rb:132:in'process_command'
/opt/codedeploy-agent/lib/instance\u-agent/plugins/codedeploy/command\u-poller.rb:65:in'perform'
/opt/codedeploy-agent/lib/instance\u-agent/agent/base.rb:28:in'run'
/opt/codedeploy-agent/lib/instance\u-agent/runner/child.rb:38:in'block-in-run'
/opt/codedeployagent/lib/instance\u agent/runner/child.rb:55:in`with\u error\u handling'
/opt/codedeployagent/lib/instance_agent/runner/child.rb:37:in'run'
/opt/codedeploy-agent/vendor/gems/process\u-manager-0.0.13/lib/process\u-manager/child.rb:70:在“带错误处理的运行块”中
/opt/codedeployagent/lib/instance\u agent/runner/child.rb:55:in`with\u error\u handling'
/opt/codedeploy-agent/vendor/gems/process\u-manager-0.0.13/lib/process\u-manager/child.rb:69:“运行时出错处理”
/opt/codedeploy-agent/vendor/gems/process_-manager-0.0.13/lib/process_-manager/child.rb:33:在“开始时阻止”中
/opt/codedeployagent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:22:in'loop'
/opt/codedeployagent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:22:in'start'
/opt/codedeploy-agent/vendor/gems/process_-manager-0.0.13/lib/process_-manager/master.rb:206:在“生成子对象中的块”中
/opt/codedeployagent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:204:in'fork'
/opt/codedeployagent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:204:in`spawn_child'
/opt/codedeploy-agent/vendor/gems/process_-manager-0.0.13/lib/process_-manager/master.rb:196:in“block-in-spawn_-children”
/opt/codedeployagent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:195:in'times'
/opt/codedeployagent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:195:in'spawn_children'
/opt/codedeployagent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:134:in'start'
/opt/codedeploy-agent/vendor/gems/process_-manager-0.0.13/lib/process_-manager/master.rb:37:in“block-in-start”
/opt/codedeployagent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:36:in'fork'
/opt/codedeployagent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:36:in'start'
/opt/codedeployagent/bin/。/lib/codedeployagent.rb:41:in`block(2层)in'
/opt/codedeployagent/vendor/gems/gli-2.5.6/lib/gli/command_support.rb:130:in'call'
/opt/codedeployagent/vendor/gems/gli-2.5.6/lib/gli/command_support.rb:130:in'execute'
/opt/codedeploy agent/vendor/gems/gli-2.5.6/lib/gli/app_support.rb:262:in“block-in-call_命令”
/opt/codedeployagent/vendor/gems/gli-2.5.6/lib/gli/app_support.rb:275:in'call'
/opt/codedeployagent/vendor/gems/gli-2.5.6/lib/gli/app_support.rb:275:in'call_command'
/opt/codedeployagent/vendor/gems/gli-2.5.6/lib/gli/app_support.rb:69:in'run'
/opt/codedeployagent/bin/。/lib/codedeployagent.rb:88:in`'
您有deploymentId吗?或者您介意在实例上粘贴host agent日志以提供更多上下文吗?host agent日志目录为/var/log/aws/codedeploy agent/codedeploy agent。从SDK核心查找S3 SDK时,日志似乎在抱怨问题。您是否尝试将host agent更新为最新版本或手动将aws sdk core导入到该框中?嘿,我提供了原始问题中错误的stacktrace