CodeDeploy 配置以覆盖文件 [英] CodeDeploy configuration to overwrite files

查看:16
本文介绍了CodeDeploy 配置以覆盖文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过 CodeDeploy/etc/logstash/ 中的目标实例中部署 logstash 配置.

I am deploying via CodeDeploy a logstash configuration in a target instance in /etc/logstash/.

这是 3 阶段 CodePipeline 的最后一步.

This is the last step in a 3-staged CodePipeline.

但是它失败并显示消息

部署失败,因为此位置已存在指定文件:/etc/logstash/pipelines.yml

The deployment failed because a specified file already exists at this location: /etc/logstash/pipelines.yml

如何指示 CodeDeploy 覆盖文件?

How can I instruct CodeDeploy to overwrite files?

推荐答案

目前,我看到您可以覆盖文件的唯一方法是选择覆盖或保留,如此处所示,当您创建新部署.在其他任何地方您都不会看到这些设置.如果我没记错的话,这是唯一的方法,因为 CLI 不支持它.

Currently, the only way I have seen that you can overwrite files is selecting to overwrite or retain, as seen here, when you're creating a new deployment. In no other place will you see those settings. And if I'm not mistaken, this is the only way to do it because it is not supported on the CLI.

2021 年 7 月更新:看起来 AWS 终于承认了这个缺陷——看 在这里获取更新.

July 2021 Update: Looks like AWS has finally acknowledged this defect -- look here for updates on all that.

这篇关于CodeDeploy 配置以覆盖文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆