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 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor einem Monat
  • 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.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen