- AWS Administration Cookbook
- Lucas Chan Rowan Udell
- 202字
- 2021-07-09 18:18:28
Cross-stack references
When using the layered cake approach, it's very common to want to use outputs from one stack as inputs in another stack. For example, you may create a VPC in one stack and require its VPC ID when creating resources in another.
For a long time, one needed to provide some glue around stack creation to pass output between stacks. AWS recently introduced cross-stack references, which provide a more native way of doing this.
You can now export one or more outputs from your stack. This makes those outputs available to other stacks. Note that the name of this value needs to be unique, so it's probably a good idea to include the CloudFormation stack name in the name you're exporting to achieve this.
Once a value is exported, it becomes available to be imported in another stack using the Fn::ImportValue function—very handy!
- 虛擬儀器設(shè)計測控應(yīng)用典型實例
- 數(shù)據(jù)展現(xiàn)的藝術(shù)
- Mastering Mesos
- Learning Microsoft Azure Storage
- Dreamweaver 8中文版商業(yè)案例精粹
- 來吧!帶你玩轉(zhuǎn)Excel VBA
- 網(wǎng)上生活必備
- 機器學(xué)習(xí)與大數(shù)據(jù)技術(shù)
- 嵌入式Linux上的C語言編程實踐
- Photoshop CS3圖像處理融會貫通
- Mastering Game Development with Unreal Engine 4(Second Edition)
- 從祖先到算法:加速進化的人類文化
- 軟件測試管理
- 數(shù)據(jù)結(jié)構(gòu)與實訓(xùn)
- Apache Spark Machine Learning Blueprints