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

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.
主站蜘蛛池模板: 龙陵县| 土默特左旗| 克山县| 青田县| 平乐县| 离岛区| 桦南县| 乐平市| 象州县| 石台县| 渝中区| 高碑店市| 临海市| 洛宁县| 都江堰市| 天水市| 定州市| 阿合奇县| 黔南| 剑河县| 邛崃市| 兰溪市| 巴林右旗| 英吉沙县| 新绛县| 红桥区| 土默特右旗| 阜城县| 长顺县| 青岛市| 花莲县| 株洲市| 承德市| 信丰县| 江孜县| 茌平县| 大姚县| 双鸭山市| 榆林市| 冕宁县| 沙河市|