Skip to content

Commit 13e50e6

Browse files
committed
Document that create_before_destroy cannot depend on resources that are not also create_before_destroy
1 parent 29d4a3e commit 13e50e6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

website/source/docs/configuration/resources.html.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ The `lifecycle` block allows the following keys to be set:
6868
destruction of a given resource. When this is set to `true`, any plan
6969
that includes a destroy of this resource will return an error message.
7070

71+
~> **NOTE on create\_before\_destroy and dependencies:** Resources that utilize
72+
the `create_before_destroy` key can only depend on other resources that also
73+
include `create_before_destroy`. Referencing a resource that does not include
74+
`create_before_destroy` will result in a dependency graph cycle.
75+
7176
-------------
7277

7378
Within a resource, you can optionally have a **connection block**.

0 commit comments

Comments
 (0)