yamlinc icon indicating copy to clipboard operation
yamlinc copied to clipboard

yamlinc fails in unrecognized tag

Open JHoerbst opened this issue 4 years ago • 1 comments

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.

JHoerbst avatar Dec 07 '20 10:12 JHoerbst

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

powowbox avatar Jan 25 '23 18:01 powowbox