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 Risposta
1
Risposta accettata

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
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato un mese fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande