- AWS Administration Cookbook
- Lucas Chan Rowan Udell
- 74字
- 2021-07-09 18:18:28
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
Documentation on all of these functions is available here http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html.
推薦閱讀
- Dreamweaver CS3網頁設計與網站建設詳解
- 電腦上網直通車
- 傳感器技術應用
- Photoshop CS3圖層、通道、蒙版深度剖析寶典
- Embedded Programming with Modern C++ Cookbook
- AutoCAD 2012中文版繪圖設計高手速成
- 具比例時滯遞歸神經網絡的穩定性及其仿真與應用
- Linux服務與安全管理
- 空間機械臂建模、規劃與控制
- MATLAB-Simulink系統仿真超級學習手冊
- 簡明學中文版Photoshop
- Spark大數據商業實戰三部曲:內核解密|商業案例|性能調優
- 寒江獨釣:Windows內核安全編程
- Hands-On Deep Learning with Go
- EJB JPA數據庫持久層開發實踐詳解