Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between `Ref: logicalName` and `!Ref logicalName` in AWS Cloudformation templates in YAML?

What is the difference between Ref: and !Ref in AWS Cloudformation templates in YAML?

According to AWS docs, Ref: logicalName is "syntax for the full function name" and !Ref logicalName is "syntax for the short form". Is there functionally a difference between the full function name and short form. Can I just use either or?

like image 977
vivian Avatar asked May 08 '19 23:05

vivian


1 Answers

You can use either. It's just syntactic sugar.

like image 174
kichik Avatar answered Nov 04 '22 08:11

kichik