monken / cfn-include

Preprocessor for CloudFormation templates with support for loops and flexible include statements
MIT License
86 stars 10 forks source link

cfn-include enters infinite loop #27

Closed kika closed 7 years ago

kika commented 7 years ago

If the included template is on S3 and has zero length.

Repro case:

  1. rm -f images.yaml; touch images.yaml
  2. aws s3 cp images.yaml s3://xxxxx-my-bucket/
  3. Use the template
    
    AWSTemplateFormatVersion: '2010-09-09'

Mappings: Ec2ImageMap: !Include s3://xxxxx-my-bucket/images.yaml



Quick debugging shows that `include` repeatedly calls itself in such case.