클라우드/Terraform2 [테라폼] Terraform에서 GCP 변수 관리 자동화하기: tfvars 파일 사용법 main.tf에 하단처럼 입력할 경우, terraform plan이나 terraform apply할 때마다 값을 지정해주어야 해서 번거로움# Google Cloud Provider 설정provider "google" { credentials = file("/home/ubuntu/project/key.json") project = var.project_id region = var.region}variable "project_id" { description = "The ID of the GCP project" type = string}variable "region" { description = "The region to deploy resources in" type .. 2024. 8. 12. [테라폼] WSL에서 Ubuntu 22.04로 Terraform 여는 방법 1. cmd창에 wsl 설치(Ubuntu 22.04)wsl --installwsl --install -d Ubuntu-22.04 2. wsl입력 wsl# WSL에서 Ubuntu로 들어가는 방법 sudo -i 비밀번호 생성 및 입력 sudo apt-get update sudo apt-get install -y gnupg software-properties-common curl# 필요한 패키지 업데이트 및 설치 curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -# HashiCorp의 GPG 키 추가 sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hash.. 2024. 8. 6. 이전 1 다음