Terraform Flashcards
What is Terraform?
Terraform is an open-source infrastructure as code (IaC) tool developed by HashiCorp. It allows you to define and provision infrastructure using a high-level configuration language. Terraform supports multiple cloud providers and services, enabling you to manage your infrastructure in a consistent and automated way.
What are the key features of Terraform?
Key features of Terraform include:
Infrastructure as Code: Define infrastructure using declarative configuration files.
Execution Plans: Preview changes before applying them.
Resource Graph: Visualize dependencies between resources.
State Management: Keep track of infrastructure state to manage updates and changes.
Multi-Cloud Support: Manage resources across multiple cloud providers.
How does Terraform handle state management?
Terraform uses a state file to keep track of the current state of your infrastructure. This state file is used to map real-world resources to your configuration, track metadata, and improve performance. The state file can be stored locally or remotely (e.g., in an S3 bucket) for collaboration.
What is a Terraform provider?
Is a plugin that allows Terraform to interact with APIs of cloud providers, SaaS providers, and other services. Providers define the resources and data sources available for use in your configuration. Examples include AWS, Azure, Google Cloud, and Kubernetes.