pulumi / pulumi-aws-native

AWS Native Provider for Pulumi
Apache License 2.0
94 stars 17 forks source link

cf2pulumi: panic recovered during YAML parsing: assignment to entry in nil map #149

Open asaf400 opened 3 years ago

asaf400 commented 3 years ago

Hello!

When trying to convert this template: https://github.com/aws-quickstart/quickstart-memsql/blob/develop/templates/memsql.template.yaml

The pulumi web cf2pulumi tool fails with the following error: failed to render template: panic recovered during YAML parsing: assignment to entry in nil map

I guess either the issue is a known missing feature, or just an edge case because that template is full of CF features but it is still 1000+ lines long

PatMyron commented 3 years ago

seemingly issues converting the Sub in UserData at least

mikhailshilkov commented 1 year ago

153 fixed the original error.

Unfortunately, that yields a new error, failed to render template: unsupported property 'Condition' in resource 'Leaf5'. That is caused by the following YAML

Conditions:
  CreateLeaf5: !Or
    - !Condition 'CreateLeaf6'
    - !Equals
      - !Ref 'NumLeaves'
      - 5