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.

preguntada hace un año482 visualizaciones
1 Respuesta
3
Respuesta aceptada

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
EXPERTO
respondido hace un año
profile pictureAWS
EXPERTO
iBehr
revisado hace 10 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas