AWS: Cloud Formation: Is It Possible To Use Multiple "DependsOn"?


Answer :

Yes,

The DependsOn attribute can take a single string or list of strings.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html

Syntax:

"DependsOn" : [ String, ... ]


This answer comes up first in Google, so I will include how to do multiple dependson attributes in YAML, which I found in this answer.

AnotherProductionResource:   Type: AWS::CloudFormation::Stack    Condition: ISProduction    DependsOn:    - AResource    - MyProductionResource    Properties:      [...] 

Yes, "DependsOn" can take multiple strings. I have listed an example below:

"DependsOn": [ "S3BucketAppElbLogs", "ElbLogAppBucketPolicy" ]


Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?