Aws Code pipeline is failing at Deployment stage by timing out

僤鯓⒐⒋嵵緔 提交于 2020-12-27 06:04:26

问题


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

I have 3 steps:

1: Source (git hub version2)

2: Build (currently has no commands)

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

Felt that was appropriate.

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

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.


回答1:


Without appspec.yml your deployment will fail. From 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.



来源:https://stackoverflow.com/questions/65234984/aws-code-pipeline-is-failing-at-deployment-stage-by-timing-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!