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

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
主站蜘蛛池模板: 平舆县| 安吉县| 江门市| 揭东县| 民乐县| 滦南县| 盐津县| 宁强县| 大竹县| 黎城县| 孟村| 彭阳县| 桐柏县| 运城市| 深水埗区| 乳源| 大田县| 周至县| 禄劝| 米脂县| 西藏| 洪洞县| 威信县| 五家渠市| 中江县| 裕民县| 临沧市| 垫江县| 三穗县| 荃湾区| 湘乡市| 茂名市| 南康市| 鄢陵县| 新建县| 安义县| 历史| 齐河县| 雷山县| 西峡县| 无为县|