【问题标题】:CFN-Lint error in nested Cloudformation stack嵌套 Cloudformation 堆栈中的 CFN-Lint 错误
【发布时间】:2022-12-10 05:47:35
【问题描述】:

我正在使用 CloudFormation Nested Stack 创建 AWS 资源,管道在 Gitlab 中运行。

Resources:
  CF-resource:
    Type: AWS::CloudFormation::Stack
    Properties:
      TemplateURL: local path of yaml file 
      Parameters:

在父堆栈上使用 CFN-Lint 测试时,出现以下错误。

** W3002 此代码可能仅适用于 package cli 命令,因为属性 (/TemplateURL) 是一个字符串**

你能帮我解决这个问题吗

【问题讨论】:

    标签: amazon-web-services gitlab amazon-cloudformation lint


    【解决方案1】:

    这是一个警告,让您知道如果不先打包就不能直接部署此模板。您可以通过添加-i W3002 来抑制它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-25
      • 2019-10-28
      • 1970-01-01
      • 1970-01-01
      • 2018-06-15
      • 2017-05-16
      • 2015-02-21
      • 2020-10-31
      相关资源
      最近更新 更多