yamlinc
yamlinc copied to clipboard
yamlinc fails in unrecognized tag
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.
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