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

Custom resources

As discussed previously in this chapter, it's common for there to be a lengthy wait between the release of a new AWS feature and your ability to use that feature in CloudFormation.

Before custom resources, this led AWS developers down the path of doing over 95 percent of their automation in CloudFormation and then running some CLI commands to fill in the gaps. It was often difficult to tell exactly which resources belonged to which stack, and knowing exactly when your stack had finished execution became a guessing game.

Fast forward to today, and the emerging pattern is to use a custom resource to delegate to a AWS Lambda function. Lambda can fill in the gaps by making API calls on your behalf, and it becomes much easier to track the heritage and completion of these resources.

With any luck, you won't need to use this feature for a while. In the meantime, the AWS custom resource documentation is quite comprehensive. If you are trying to use CloudFormation to create a resource that you can't find in the AWS docs, then it's likely that it's not supported in CloudFormation yet and using custom resources is your answer. For more information, refer to http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html.
主站蜘蛛池模板: 罗源县| 固镇县| 云和县| 德庆县| 高要市| 东乌珠穆沁旗| 城口县| 洛阳市| 鹿泉市| 阳江市| 星座| 彭泽县| 邢台市| 东辽县| 杂多县| 团风县| 克东县| 丰都县| 丹凤县| 滦平县| 乐昌市| 天峻县| 桑日县| 宜兰市| 顺义区| 河间市| 明星| 仁布县| 衢州市| 长垣县| 临澧县| 温州市| 武夷山市| 上林县| 新巴尔虎左旗| 松滋市| 宜川县| 黔西县| 龙里县| 茌平县| 晋中市|