VPC 썸네일형 리스트형 [Terraform] 테라폼 VPC 생성 VPC 생성 vpc.tf 파일 생성 $ vim vpc.tf ###VPC 생성 resource "aws_vpc" "sangchul_vpc11" { cidr_block = "10.11.0.0/16" enable_dns_support = true enable_dns_hostnames = true instance_tenancy = "default" tags = { Name = "sangchul_vpc11" Env = "stg" CreateUser = "terraform@email.com" Owner = "iac" Role = "vpc" Service = "network" } } terraform apply 명령 실행 $ terraform apply An execution plan has been generate.. 더보기 [Terraform] 테라폼 프로바이더(Provider) 및 VPC 생성 테라폼 프로바이더 생성 terraform 디렉터리 생성 $ mkdir terraform $ cd $_ 프로바이더 생성 $ vim provider.tf terraform { required_providers { aws = { source = "hashicorp/aws" version = "3.25.0" } } } provider "aws" { # Configuration options shared_credentials_file = "~/.aws/credentials" region = "us-east-1" profile = "tfa" } VPC 생성 $ vim vpc_vpc99.tf resource "aws_vpc" "vpc99" { cidr_block = "10.99.0.0/16" tags = { Name.. 더보기 이전 1 다음