Aws 代码管道在部署阶段因超时而失败

Aws Code pipeline is failing at Deployment stage by timing out

我正在努力为应用程序的 Api 部分提供 [​​=41=]。

我有 3 个步骤:

1:来源(git 集线器版本 2)

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

3:部署(提供者是代码部署(应用程序))

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

.

正在创建部署组。我从选项中选择了下载代码部署提供程序的选项(尽管这是必要的)。

在设置代码管道时选择

觉得合适。

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

注意: 我们在这张 Ec2 图像上什么都没有,它只是我们拥有 API 的地方。 目前,EC2 是空的。

实现这个的正确方法是什么?我怎样才能克服我面临的问题。

如果没有 appspec.yml,您的部署将失败。来自 docs:

An AppSpec file must be a YAML-formatted file named appspec.yml and it must be placed in the root of the directory structure of an application's source code. Otherwise, deployments fail.