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

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
主站蜘蛛池模板: 广灵县| 东乌珠穆沁旗| 大冶市| 汉寿县| 扬州市| 红河县| 栾城县| 沾化县| 花莲县| 珲春市| 垫江县| 高阳县| 滨州市| 丁青县| 河北省| 辽中县| 浑源县| 临湘市| 德江县| 理塘县| 广安市| 囊谦县| 赫章县| 恩平市| 寿宁县| 天气| 行唐县| 白玉县| 霍林郭勒市| 乾安县| 海晏县| 东兴市| 苗栗县| 武汉市| 碌曲县| 莆田市| 安康市| 兰西县| 嘉黎县| 依安县| 水城县|