官术网_书友最值得收藏!

YAML versus JSON

Up until recently, JSON was your only option. We'll actually encourage you to adopt YAML, and we'll be using it for all of the examples shown in this book. Some of the reasons are as follows:

  • It's just nicer to look at. It's less syntax heavy, and should you choose to go down the path of generating your CloudFormation templates, pretty much every language has a YAML library of some kind.
  • The size of your templates will be much smaller. This is more practical from a developer's point of view, but it also means you're less likely to run into the CloudFormation size limit on template files (50 KB).
  • The string-substitution features are easier to use and interpret.
  • Your EC2 UserData (the script that runs when your EC2 instance boots) will be much easier to implement and maintain.
主站蜘蛛池模板: 正阳县| 荣昌县| 吉林市| 神木县| 房山区| 丰镇市| 义乌市| 石城县| 嘉善县| 五大连池市| 措勤县| 合川市| 武定县| 周至县| 华宁县| 灵台县| 八宿县| 监利县| 湖南省| 高州市| 通城县| 建德市| 太仆寺旗| 江津市| 湖州市| 大方县| 铜梁县| 廊坊市| 新宾| 广昌县| 边坝县| 镇巴县| 玉龙| 无锡市| 怀化市| 黎城县| 二连浩特市| 龙门县| 西城区| 广元市| 竹北市|