Documentation Index
Fetch the complete documentation index at: https://docs.riad.com.bd/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
Terraform is an open-source infrastructure as code (IaC) software tool created by HashiCorp. It allows users to define and provision data center infrastructure using a high-level configuration language known as HashiCorp Configuration Language (HCL), or optionally JSON. Terraform enables you to manage and automate the provisioning of infrastructure across various cloud providers and services, making it easier to create, change, and improve infrastructure efficiently and safely.Key Features of Terraform
- Infrastructure as Code (IaC): Terraform allows you to define your infrastructure in code, making it easier to version, share, and reuse configurations.
- Multi-Cloud Support: Terraform supports a wide range of cloud providers, including AWS, Azure, Google Cloud, and many others, allowing you to manage infrastructure across multiple platforms.
- Resource Graph: Terraform builds a resource graph to understand the dependencies between resources, enabling it to create and manage resources in the correct order.
- Execution Plans: Terraform generates an execution plan that shows what actions will be taken before applying changes, allowing you to review and approve changes before they are made.
- State Management: Terraform maintains a state file to keep track of the resources it manages, allowing it to detect changes and manage infrastructure effectively.
- Modularity: Terraform supports modules, which are reusable configurations that can be shared and versioned, making it easier to manage complex infrastructure.
- Community and Ecosystem: Terraform has a large and active community, with many providers and modules available, making it easier to find resources and support for your infrastructure needs.
Parameters:
- ami: The Amazon Machine Image (AMI) ID to use for the EC2 instance. This parameter specifies the ID of an AMI to deploy on the server.
- user_data: A script that runs when the EC2 instance is launched. This parameter allows you to provide a script that will be executed on the server during initialization, which can be used for tasks such as installing software or configuring settings.