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

Fn::Sub

Use Fn::Sub to perform string substitution. Consider this:

DSN: "Fn::Sub"
- mysql://${db_user}:${db_pass}@${db_host}:3306/wordpress
- { db_user: lchan, db_pass: ch33s3, db_host: localhost }

This would yield the following value:

mysql://lchan:ch33s3@localhost:3306/wordpress

When you combine these functions with Ref and Fn::GetAtt, you can start doing some really powerful stuff, as we'll be seeing in the recipes throughout this book.

Other available inbuilt functions include:

  • Fn::Base64
  • Fn::FindInMap
  • Fn::GetAZs
  • Fn::ImportValue
  • Fn::Select
主站蜘蛛池模板: 宜黄县| 武宁县| 军事| 临城县| 满洲里市| 项城市| 盐源县| 纳雍县| 玛沁县| 新龙县| 邻水| 来凤县| 太和县| 清流县| 寿阳县| 繁峙县| 清原| 汨罗市| 株洲市| 右玉县| 平定县| 商南县| 宜昌市| 四会市| 神池县| 黄石市| 乌恰县| 晋江市| 通海县| 崇左市| 广宗县| 遵化市| 开原市| 章丘市| 襄樊市| 东山县| 慈溪市| 佛教| 松桃| 出国| 墨竹工卡县|