使用 aws codedeploy 从没有 appspec.yml 的 git 存储库进行部署

Deployment from git repo that doesn't have appspec.yml using aws codedeploy

我有一个没有 appspec.yml 文件的 Git 存储库。

在这种情况下如何使用 CodeDeploy

如何写入 AppSpec 文件以从 S3 URL 下载文件?

没有 appspec 文件就无法部署。部署将失败。

作为替代方案,您可以将 repo 打包为 zip 包,添加 appspec,然后注册修订并部署。

Codedeploy 部署需要 Appspec 文件。以下是有关将 Codedeploy 与 Github.

集成的一些有用文档

https://aws.amazon.com/blogs/devops/automatically-deploy-from-github-using-aws-codedeploy/

https://docs.aws.amazon.com/codedeploy/latest/userguide/tutorials-github.html