[英]Use aws copilot with a configuration in a different directory
I want to avoid having a copilot
directory in the top-level of my project.我想避免在我的项目的顶层有一个
copilot
目录。 Is there a way to put it in .aws/copilot
or similar and then specify it with a command-line flag?有没有办法把它放在
.aws/copilot
或类似的地方,然后用命令行标志指定它? The --help
text is not very illuminating. --help
文本不是很有启发性。
Unfortunately, Copilot doesn't support that today.不幸的是,Copilot 今天不支持它。 If you'd like to move the
copilot/
directory down in the file structure of your project, you'll have to run your Copilot commands from that level.如果您想在项目的文件结构中向下移动
copilot/
目录,则必须从该级别运行 Copilot 命令。 For pipelines, you'll need to tell the buildspec where to find the pipeline manifest using the对于管道,您需要使用
build:
buildspec:
field in the manifest.yml file. manifest.yml 文件中的字段。
Furthermore, the copilot/
directory contains infrastructure-as-code files that you'd need to commit in a git repo, so you wouldn't want to tuck this directory away in a hidden directory.此外,
copilot/
目录包含您需要在 git 存储库中提交的基础架构即代码文件,因此您不希望将此目录隐藏在隐藏目录中。 Hope that helps!希望有帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.