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.

posta un anno fa481 visualizzazioni
1 Risposta
3
Risposta accettata

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
ESPERTO
con risposta un anno fa
profile pictureAWS
ESPERTO
iBehr
verificato 10 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande