Quiz 1 Question 19 of 20

An aws_eip resource uses for_each = toset(aws_instance.app[*].id). On a fresh environment, terraform plan fails because the for_each value depends on resource attributes that cannot be determined until apply. What is the recommended fix?

Select an answer to reveal the explanation.

Motivation