Ask Your Question
2

If the for_each is empty, should any dynamic resources be disregarded?

asked 2021-05-30 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-10-30 16:00:00 +0000

david gravatar image

Yes, if the foreach is empty, then no resources will be created dynamically and any existing resources created with that foreach will be destroyed. Therefore, any dynamic resources associated with that for_each should also be disregarded.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-30 11:00:00 +0000

Seen: 11 times

Last updated: Oct 30 '21