Terraform (HCL)
resource "aws_instance" "web" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t3.micro"
tags = { Name = "web-server" }
}Pulumi (TypeScript)
import * as aws from "@pulumi/aws";
const server = new aws.ec2.Instance("web", {
ami: "ami-0c55b159cbfafe1f0",
instanceType: "t3.micro",
tags: { Name: "web-server" },
});
export const ip = server.publicIp;선택 기준
- Terraform: 넓은 생태계, 팀 표준
- Pulumi: 프로그래밍 언어 사용, 복잡한 로직
댓글 0