HCL은 조건문도 사용할 수 있다. Variables와 Condition을 조합해서 한번 조건문을 다뤄보자. Basic 다음 main.tf 코드를 보자. provider "aws" { region = "ap-northeast-2" } variable "is_john" { type = bool default = true } locals { message = var.is_john ? "Hello John" : "Oh, Your are not John." } output "message" { value = local.message } 변수로 is_john이라는 녀석을 선언한다. 이 녀석은 boolean 타입의 변수고 기본값이 true이다. 이 때 로컬 변수 message는 is_john의 값에 따라 값이 달라..