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

1 Answer
1
Accepted Answer

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
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions