Terraform
Terraform Resource
Appears inTerraform Associate
A configuration block that describes an infrastructure object (VM, bucket, database) that Terraform creates and manages. Syntax: resource "type" "local_name" { arguments }.
On the exam
A Terraform Associate fundamental. Resources have a type (aws_instance, azurerm_resource_group) and a local name (identifier within the code). They're referenced as type.name.attribute. A resource that changes may require recreation (tainted).
Related terms
- Terraform ProviderA plugin that lets Terraform interact with a specific API (AWS, Azure, GCP, Kubernetes, etc.). Each provider exposes resources and data sources. It's declared in the terraform.required_providers block.
- Terraform StateA file (terraform.tfstate) that Terraform uses to map the real-world configuration in code to actual resources in the cloud. It's Terraform's source of truth about which resources it manages and their current status.