Is DependsOn attribute in cloudformation honored on update as well ?

0

Hi,

I have a usecase where resource A DependsOn resource B. Both resources have already been created in my aws account. I want to make a cloudformation change to update both resource A and B and I want that the update is first applied to resource B and then A.

Question: Is the dependency order followed during explicit dependency ?

The AWS docs (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) mentions that the order is followed for implicit dependency but it is not clear whether it is followed for explicit dependency as well.

質問済み 1年前482ビュー
1回答
3
承認された回答

DependsOn creates explicit dependencies in cloudformation, which means dependency order would be there irrespective of create stack or update stack, because you explicitly dictated CFN to follow that order.

Functions such as Ref, GetAtt create implicit dependencies.

profile pictureAWS
エキスパート
回答済み 1年前
profile pictureAWS
エキスパート
iBehr
レビュー済み 10ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ