简体   繁体   English

将 aws copilot 与不同目录中的配置一起使用

[英]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.

相关问题 我可以将 AWS Copilot 与 docker-compose.yml 文件一起使用吗? - Can I use AWS Copilot with docker-compose.yml file? 您如何同时在 AWS Copilot 上部署多项服务? - How do you deploy multiple services on AWS Copilot at once? 如何在 terraform 提供商配置中维护不同的 aws 配置文件 - How to maintain different aws profiles in terraform provider configuration 如何通过将 aws cognito 服务与 aws copilot cli 结合使用已通过身份验证 - how to integrate with already authenticated by using aws cognito service with aws copilot cli 为 EKS 使用 AWS Secrets & Configuration Provider:来自服务器的错误 (BadRequest) - use AWS Secrets & Configuration Provider for EKS: Error from server (BadRequest) AWS Copilot 管道失败,为什么 CodeBuild 找不到 buildspec.yml? - AWS Copilot pipeline fails, why cant CodeBuild find buildspec.yml? 为什么 AWS Copilot Task Run 总是在没有 --follow 选项的情况下返回退出代码 0? - Why does AWS Copilot Task Run always return exit code 0 without --follow option? Django、Celery 和 Celery 通过 Copilot 跳动。 使用 Sidecars 或多种服务? - Django, Celery, and Celery beat via Copilot. Use Sidecars or multiple services? 使用 AWS copilot 创建了一个管道,原始推送有效但是当我更改代码并将它们推送到 github 时它们没有显示 - Created a pipeline using AWS copilot, original push worked but when I make changes to code and push them to github they don't show up AWS RDS 代理配置 - AWS RDS Proxy configuration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM