aws CodeDeploy error : Artifact [Source] exceeds max artifact size

aws CodeDeploy error : Artifact [Source] exceeds max artifact size

当我 运行 管道时,部署步骤失败。 当我单击 "details" link 时,会出现一个弹出窗口并显示错误消息:

"Action execution failed Artifact [Source] exceeds max artifact size"

我已尝试 google 查找错误消息、搜索 Whosebug、阅读限制等。

有什么提示或建议吗?

如果您要部署到 Elastic Beanstalk,CodePipeline 的限制为 512MB,如果您的源工件来自 git repo,则为 1GB,如果您的源工件是 S3 存储桶,则为 2GB。

也许您可以通过删除生产中不需要的文件来找到减小工件大小的方法。