GitFilePathFilterCriteria exists in CloudFormation docs but is not supported by CloudFormation.

0

Title. Try creating a CFN stack with GitFilePathFilterCriteria as a property for a AWS::CodePipeline::Pipeline resource, you will get get an unsupported property error, but this property is listed in the docs right here:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitfilepathfiltercriteria.html

已提问 2 个月前396 查看次数
1 回答
1
已接受的回答

Hello.

Could you share your CodePipeline CloudFormation template?
There may be a problem with the template syntax.

Can you confirm that "Triggers" has the following syntax?
Looking at the document, you can see that "FilePaths" of "PullRequest" is "AWS::CodePipeline::Pipeline GitFilePathFilterCriteria".

Type: AWS::CodePipeline::Pipeline
Properties:
  Triggers: 
    - GitConfiguration:
        PullRequest: 
          - FilePaths: 
              Excludes: 
                - "test"
              Includes: 
                - "sample"

profile picture
专家
已回答 2 个月前
profile picture
专家
已审核 1 个月前
  • Thanks, that works. Is there any way you were able to see what fields the property belongs to? From the documentation, I was only able to tell that GitFilePathFilterCriteria is a property of AWS::CodePipeline::Pipeline, not of GitConfiguration

  • I also searched by tracing the property one by one.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则