AWS Code管道在部署阶段由于超时而失败 [英] Aws Code pipeline is failing at Deployment stage by timing out

本文介绍了AWS Code管道在部署阶段由于超时而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以一种方式为应用程序的Api部分提供ci/cd.

I am trying to work my way to have a ci/cd for the Api part of the application.

我有3个步骤:

1:来源(git hub版本2)

1: Source (git hub version2)

2:构建(当前没有命令)

2: Build (currently has no commands)

3:Deploy(提供者是代码deploy(应用程序))

3: Deploy(provider is code deploy(application))

这是代码部署中事件的屏幕截图.

Here is the screenshot of the events in code deploy.

.

在创建部署组时.我选择了从该选项下载代码部署提供程序的选项(尽管有必要).

While creating the Deployment Group. I chose the option of downloading the code deploy provider from the option(though it was necessary).

在设置代码管道时,选择了

While setting up the code pipeline chose

感觉合适.

此代码管道已将对象放入该管道的S3存储桶中.代码部署正作用于该源工件.

This code pipeline has put an object into the S3 bucket for this pipeline. Code deploy is acting on that source artifact.

注意:在此Ec2图像上我们什么都没有,它只是我们拥有API的地方.目前,Ec2为空.

Note: We have nothing on this Ec2 image it's just a place where we have our API. Currently, Ec2 is empty.

实施此操作的正确方法是什么?我该如何克服所面临的问题.

What would be the proper way to implement this? How can I overcome the issues I am facing.

推荐答案

如果没有 appspec.yml ,部署将失败.来自文档:

Without appspec.yml your deployment will fail. From docs:

AppSpec文件必须是YAML格式的文件appspec.yml,并且必须放置在应用程序源代码目录结构的根中.否则,部署失败.

这篇关于AWS Code管道在部署阶段由于超时而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆