javanile / yamlinc

Compose multiple YAML files into one with $include tag. Split Swagger/OpenAPI into multiple YAML files.
MIT License
114 stars 24 forks source link

yamlinc fails in unrecognized tag #30

Open JHoerbst opened 3 years ago

JHoerbst commented 3 years ago

Analize : template-api.yaml

Problem : Error on file 'template-api.yaml' unknown tag !<!Ref> at line 32, column 27:

  • !Ref Environment ^ Compile : template-masterdata-api.inc.yaml

This is aws sam logic and it shouldn't fail.

powowbox commented 1 year ago

for instance, if you have InstanceId: !Ref MyEC2Instance

Use the alternative syntax

InstanceId:
   Ref: MyEC2Instance

The same alternative syntax can be use for every !XXX operator, see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html