Terraform 기본 사용법 (2)
·
DevOps/IaC - Terraform
resource리소스 유형을 "local_file" 로 지정하면 terraform apply 를 실행하는 로컬에 파일이 생성된다. 그런데 아래와 같이 리소스 유형을 "aws_instance" 로 설정한다면 web 이라는 이름의 aws 인스턴스가 생성된다.resource "" "" { = }### EX ###resource "aws_instance" "web" { ami = "ami-123456" instance_type = "t3.micro" count = var.instance_count tags = { Name = "PROJECT-DEV-WEB-01a" }} data데이터 소스는 테라폼으로 정의되지 않는 외부 리소스 또는 저장된 정보를 테라폼 내에서..
Terraform 기본 사용법 (1)
·
DevOps/IaC - Terraform
테라폼을 설치하고 프롬프트에서 terraform --help 명령어를 입력하면 아래와 같이 출력되는 것을 확인할 수 있다.어떠한 명령어를 어떤 때에 사용하는지 필히 숙지해야 한다.$ terraform --helpUsage: terraform [global options] [args]The available commands for execution are listed below.The primary workflow commands are given first, followed byless common or more advanced commands.Main commands: init Prepare your working directory for other commands validate..
Terraform Associate 003 (April)
·
시험/Terraform
Practice Exam April 2025 - HashiCorp Terraform Associate (003) Q1~35Practice Exam April 2025 - HashiCorp Terraform Associate (003) Q36~70 Practice Exam April 2025 - HashiCorp Terraform Associate (003) Q71~105 Practice Exam April 2025 - HashiCorp Terraform Associate (003) Q106~140Practice Exam April 2025 - HashiCorp Terraform Associate (003) Q141~175Practice Exam April 2025 - HashiCorp Terraform ..