You can use depends_on to identify the dependency. You may also use the relies on the parameter to indicate several resources, and Terraform will build the target resource when all of them have been built.