What is the Terraform Registry?
Answer
The Terraform Registry (registry.terraform.io) is the official repository for Terraform providers and modules. Providers: search and find provider documentation. HashiCorp maintains official providers (AWS, Azure, GCP, Kubernetes). Partners and community maintain their own. Modules: pre-built, peer-reviewed modules for common infrastructure patterns. Official modules like terraform-aws-modules/vpc/aws are extensively tested and widely used. Usage in configuration: source = "terraform-aws-modules/vpc/aws"; version = "5.1.0". Benefits of using Registry modules: reduce boilerplate, follow best practices, get community bug fixes, and use well-documented interfaces. Always pin module versions — version = "~> 5.1" — to avoid unexpected breaking changes from module updates.
Previous
What is the difference between terraform plan and terraform apply?
Next
What is Terraform remote state?