테라폼 AWS/GCP 인프라 프로비저닝 VPC·서브넷 모듈 템플릿

💡 핵심 요약 (Executive Summary)

본 가이드는 terraform 핵심 가이드 및 실전 아키텍처의 핵심 개념, 실전 구성 명령어 및 아키텍처 베스트 프랙티스를 다룹니다. 클라우드 네이티브 및 인프라 엔지니어링 실무에 즉시 활용 가능하도록 체계적으로 정리했습니다.

📑 Table of Contents
AWS Provider
Terraform 0.13 and later:
bash
terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.0"
    }
  }
}

# Configure the AWS Provider
provider "aws" {
  region = "us-east-1"
}

# Create a VPC
resource "aws_vpc" "example" {
  cidr_block = "10.0.X.X/16"
}
Terraform 0.12 and earlier:
bash
# Configure the AWS Provider
provider "aws" {
  version = "~> 5.0"
  region  = "us-east-1"
}

# Create a VPC
resource "aws_vpc" "example" {
  cidr_block = "10.0.X.X/16"
}
Kubevirt Provider
Terraform 0.13+
bash
terraform {
  required_providers {
    kubevirt = {
      source = "kubevirt/kubevirt"
      version = "0.0.1"
    }
  }
}

provider "kubevirt" {
  # Configuration options
}
Cloudflare Provider
Features

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *