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

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.
主站蜘蛛池模板: 峨山| 临夏县| 岐山县| 砚山县| 雅安市| 常州市| 陇西县| 南平市| 黔西| 茂名市| 高邮市| 千阳县| 晋城| 长乐市| 化隆| 胶州市| 临沧市| 独山县| 孟津县| 祥云县| 南城县| 砚山县| 雷波县| 德阳市| 平顺县| 大连市| 锦州市| 曲沃县| 上杭县| 邵阳县| 成武县| 兰考县| 勃利县| 富源县| 邵阳市| 金华市| 通榆县| 杨浦区| 土默特右旗| 武夷山市| 惠安县|