테라폼은 디렉토리 단위이다
테라폼 파일이 들어있는 디렉토리에서 "terraform init"라는 명령어를 실행한 뒤
terraform apply라는 명령어를 이용하여 테라폼 파일을 실행한다.
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = ap-northeast-2
}
