4. Reference Resources
We can reference other resources we have defined in our code using their names
The order in which we place our code is not necessary in terraform. For example, we can create the AWS subnet before creating the VPC and reference vpc in subnet
There are certain cases where terraform can't figure out ordering of resources but terraform docs shows us a workaround
Last updated