Terraform
HashiCorp 的基础设施编排工具。
核心功能
声明式配置多云支持状态管理模块化
示例代码
hcl
1resource "aws_instance" "web" {2 ami = "ami-12345678"3 instance_type = "t2.micro"4 5 tags = {6 Name = "web-server"7 }8}使用代码定义和管理基础设施
HashiCorp 的基础设施编排工具。
1resource "aws_instance" "web" {2 ami = "ami-12345678"3 instance_type = "t2.micro"4 5 tags = {6 Name = "web-server"7 }8}使用编程语言定义基础设施。
1import "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2"2 3instance, _ := ec2.NewInstance(ctx, "web", &ec2.InstanceArgs{4 Ami: pulumi.String("ami-12345678"),5 InstanceType: pulumi.String("t2.micro"),6})