gpt4 book ai didi

devops - circleci config.yml : 'Invalid template path template.yml'

转载 作者:行者123 更新时间:2023-12-04 09:32:34 27 4
gpt4 key购买 nike

我正在从事 CI/CD 项目(使用 circleci 管道),目前,我坚持让我的“create_infrastructure”工作正常工作。下面是作业

    # AWS infrastructure
create_infrastructure:
docker:
- image: amazon/aws-cli
steps:
- checkout
- run:
name: Ensure backend infrastructure exist
command: |
aws cloudformation deploy \
--template-file template.yml \
--stack-name my-stack
当我运行上面的作业时,它返回 Invalid template path template.yml
  • 我想把 template.yml 放在哪里文件?
  • 我把它放在与 config.yml 相同的位置在项目的 GitHub 存储库中( 是这样吗?)
  • 莫非问题上线--template-file template.yml在我的工作中? ( 我是这里的初学者 )。
    请我需要帮助。
  • 最佳答案

    我实际上拼错了在我的 GitHub 存储库中找到的模板的名称。我改正后一切正常。
    但我认为这个错误根本不明确,我期待的是“在指定的路径中找不到模板”,而不是“无效的模板路径template.yml”

    关于devops - circleci config.yml : 'Invalid template path template.yml' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62766116/

    27 4 0