问题
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