terraform/website/docs/configuration/blocks/resources/index.html.md

1.0 KiB

layout page_title
language Resources Overview - Configuration Language

Resources

Hands-on: Try the Terraform: Get Started collection on HashiCorp Learn.

Resources are the most important element in the Terraform language. Each resource block describes one or more infrastructure objects, such as virtual networks, compute instances, or higher-level components such as DNS records.

  • Resource Blocks documents how to declare resources, including information about meta-arguments like for_each.
  • Provisioners documents configuring post-creation actions for a resource using the provisioner and connection blocks. Since provisioners are non-declarative and potentially unpredictable, we strongly recommend that you treat them as a last resort.