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.

질문됨 일 년 전483회 조회
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
전문가
답변함 일 년 전
profile pictureAWS
전문가
iBehr
검토됨 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠