Developer Tools43k+ stars
Terraform
Infrastructure as Code for any cloud
Commit Details
- Message
- "Initial commit"
- Author
- Mitchell Hashimoto
- Date
- 2014-05-21
- Hash
- 88b9c5c6e5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5
Fun Fact
HashiCorp was started by Mitchell Hashimoto and Armon Dadgar while still in college. Terraform popularized "Infrastructure as Code".
</>First Code
Go
package main
import (
"flag"
"fmt"
"os"
)
func main() {
// Terraform - Infrastructure as Code
// Build, change, and version infrastructure safely
var configPath string
flag.StringVar(&configPath, "config", ".", "Path to config")
flag.Parse()
config, err := LoadConfig(configPath)
if err != nil {
fmt.Fprintf(os.Stderr, "Error: %s\n", err)
os.Exit(1)
}
// The magic: declarative infrastructure
plan := config.Plan()
plan.Apply()
}← All Projects
28 of 48