amazon-web-services - AWS CodeDeploy 未在 Lightsail 基本设置 SSL 上部署

标签 amazon-web-services ssl aws-code-deploy amazon-lightsail

所以我正在关注本教程:https://aws.amazon.com/blogs/compute/using-aws-codedeploy-and-aws-codepipeline-to-deploy-applications-to-amazon-lightsail/
直到我不得不实际运行部署步骤为止,这一直非常有效。
The event log thing
我在 CodeDeploy 部署 Web 界面中找不到任何像样的日志。/var/log/aws/codedeploy-agent/codedeploy-agent.log 中的日志有点帮助

2020-08-28 21:03:47 INFO  [codedeploy-agent(2990)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandExecutor: Archives to retain is: 5}
2020-08-28 21:03:47 ERROR [codedeploy-agent(2990)]: InstanceAgent::Plugins::CodeDeployPlugin::CodeDeployControl: Error during certificate verification on codedeploy endpoint
 https://codedeploy-commands.us-east-2a.amazonaws.com
2020-08-28 21:03:47 ERROR [codedeploy-agent(2990)]: Error validating the SSL configuration: Invalid server certificate
2020-08-28 21:03:47 ERROR [codedeploy-agent(2990)]: booting child: error during start or run: SystemExit - Stopping CodeDeploy agent due to SSL validation error. - /opt/code
deploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:65:in `abort'
/opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/command_poller.rb:65:in `validate'
/opt/codedeploy-agent/lib/instance_agent/agent/base.rb:11:in `runner'
/opt/codedeploy-agent/lib/instance_agent/runner/child.rb:32:in `block in prepare_run'
/opt/codedeploy-agent/lib/instance_agent/runner/child.rb:78:in `with_error_handling'
/opt/codedeploy-agent/lib/instance_agent/runner/child.rb:31:in `prepare_run'
/opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:64:in `block in prepare_run_with_error_handling'
/opt/codedeploy-agent/lib/instance_agent/runner/child.rb:78:in `with_error_handling'
/opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:63:in `prepare_run_with_error_handling'
/opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/child.rb:20:in `start'
/opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:206:in `block in spawn_child'
/opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/master.rb:204:in `fork'
/opt/codedeploy-agent/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:283:in `block (2 levels) in replace_terminated_children'
/opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
/opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2020-08-28 21:03:47 ERROR [codedeploy-agent(2990)]: booting child: error during start or run: SystemExit - exit - /opt/codedeploy-agent/lib/instance_agent/runner/child.rb:90
:in `exit
我认为那里的核心可能是 ssl 的东西。我应该做一些ssl的事情吗?我什么都没做。
我找到了这个:
https://serverfault.com/questions/767680/amazon-codedeploy-failing-on-invalid-certificate/962350
这似乎相似/相同,但重新启动 LightSail 实例似乎没有帮助,而且它似乎有互联网。
感谢您提供的任何帮助,非常感谢!

最佳答案

终于弄明白了——我一直在使用这个位置:us-east-2a对于一切,因为这就是它在我的 lightsail 实例上所说的。显然,“a”实际上并不是它的一部分,并且不知何故导致了我看到的 SSL 问题。
我不得不进入 /etc/codedeploy-agent/conf/codedeploy.onpremises.yml并将区域名称更改为 us-east-2 .
我希望这至少可以使一个人免于遇到这个 super 困惑的问题。

关于amazon-web-services - AWS CodeDeploy 未在 Lightsail 基本设置 SSL 上部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63641038/

相关文章:

python - 使用 Boto3 查找属于特定目标组的 EC2 实例

java - aws s3存储桶在存储桶之间复制文件

amazon-web-services - CDK 部署在本地需要几秒钟,在 CI 中需要 >5 分钟

amazon-web-services - AWS选择CloudFormer模板

java - Netty 套接字 SSLHandshakeException WRONG_VERSION_NUMBER

java - 在 CodeDeploy 中访问 CodeBuild 运行时

amazon-web-services - 代码部署失败,没有任何错误消息

Postgresql Kubernetes 部署无法从 Secrets 读取证书文件

java - 客户端证书丢失 : How to recover it

linux - 部署后如何从实例中删除 AWS CodeDeploy bundle.tar