c:\2\workshop-oss-main\lab01>dir Volume in drive C has no label. Volume Serial Number is CE23-A397 Directory of c:\2\workshop-oss-main\lab01 2022-05-20 오후 03:57 . 2022-05-20 오후 03:57 .. 2022-05-19 오후 07:31 367 main.tf 2022-05-19 오후 07:31 65 outputs.tf 2022-05-19 오후 07:31 176 terraform.tfvars 2022-05-19 오후 07:31 1,025 variables.tf 4 File(s) 1,633 bytes 2 Dir(s) 17,672,863,744 bytes free c:\2\workshop-oss-main\lab01>more *.tf terraform { required_providers { ncloud = { source = "NaverCloudPlatform/ncloud" version = ">= 2.1.2" } } } provider "ncloud" { region = var.region site = var.site support_vpc = true } resource "ncloud_vpc" "hashicat" { ipv4_cidr_block = var.address_space name = lower("${var.prefix}-vpc-${var.region}") } # Outputs file #output "vpc_name" { # value = ncloud_vpc.name #} ############################################################################## # Variables File # # Here is where we store the default values for all the variables used in our # Terraform code. If you create a variable with no default, the user will be # prompted to enter it (or define it via config file or command line flags.) variable "prefix" { description = "This prefix will be included in the name of most resources." } variable "region" { description = "The region where the resources are created." default = "KR" } variable "site" { description = "Ncloud site. By default, the value is public. You can specify only the following value: public, gov, fin. public is for www.ncloud.com. gov is for www.gov-ncloud.com. fin is for www.fin-ncloud.com." default = "public" } variable "address_space" { description = "The address space that is used by the virtual network. You can supply more than one address space. Changing this forces a new resource to be created." default = "10.0.0.0/8" } c:\2\workshop-oss-main\lab01>