Terraform
PaketInfrastructure as code tool that provisions cloud resources from HCL files
- Erişim
- Cloud credentials; HCP Terraform token
Hakkında
HashiCorp Terraform, now owned by IBM, plans and applies infrastructure changes described in HCL files, through providers for clouds and SaaS APIs. The CLI is source-available under BUSL-1.1; HCP Terraform adds remote runs, state storage and policy checks.
Neler yapabilirsin
- Provision AWS, Azure or Google Cloud resources from versioned config files
- Preview every change with terraform plan before you apply it
- Run plans remotely and keep state in HCP Terraform
Başlarken
- Install the Terraform CLI
- Save the configuration below as main.tf
- Run terraform init, then terraform apply
Örnek kod
# main.tf: runs an nginx container with the Docker provider
terraform {
required_providers {
docker = { source = "kreuzwerker/docker", version = "~> 4.2.0" }
}
}
resource "docker_image" "nginx" { name = "nginx:latest" }
resource "docker_container" "nginx" {
image = docker_image.nginx.image_id
name = "tutorial"
ports { internal = 80 }
}Ayrıntılar
- Barındırma
- Hazır hizmet (bulut), Kendi sunucunda, Kendi bilgisayarında
- Kullanılabildiği yerler
- Tüm dünya
- Resmi SDK'lar
- Go, Python
- MCP sunucusu
- Yerel sunucu
- Entegrasyonlar
- AWS, Azure, Google Cloud