Terraform Meta Arguments

Links to this page
  • Terraform Resource Replication

    Within #Terraform Providers, we can define a resource in such a way we could replicate multiple instances of them under different name. A recommended way to do this is by using a Terraform Meta Arguments# for_each. for_each will store a list of values, of type# set or map, into a variable called each.value. The following shows the configuration# example:

  • Terraform Providers

    This will establish an implicit dependency of my_file on other_file as #HashiCorp Terraform able to recognise such relationship when running terraform apply. However, in some cases, explicit dependency might exist even though it is not being referred. As such, use the #optional argument depends_on, and defined a list of dependency the resource is relying on.

#configuration