[root@sssssss scenario01]# more *.tf :::::::::::::: main.tf :::::::::::::: # VPC > User scenario > Scenario 1. Single Public Subnet # https://docs.ncloud.com/ko/networking/vpc/vpc_userscenario1.html provider "ncloud" { support_vpc = true region = "KR" access_key = var.access_key secret_key = var.secret_key } resource "ncloud_login_key" "key_scn_01" { key_name = var.name_scn01 } resource "ncloud_vpc" "vpc_scn_01" { name = var.name_vpc ipv4_cidr_block = "10.0.0.0/16" } resource "ncloud_subnet" "subnet_scn_01" { name = var.name_subnet vpc_no = ncloud_vpc.vpc_scn_01.id subnet = cidrsubnet(ncloud_vpc.vpc_scn_01.ipv4_cidr_block, 8, 8) // 10.0.1.0/24 zone = "KR-2" network_acl_no = ncloud_vpc.vpc_scn_01.default_network_acl_no subnet_type = "PUBLIC" // PUBLIC(Public) | PRIVATE(Private) } :::::::::::::: variables.tf :::::::::::::: variable name_vpc { default = "game-vpc" } variable name_subnet { default = "pub1-subnet" } variable name_scn01 { default = "seo1" } variable client_ip { default = "223.130.137.181" } variable access_key { default = "NWGiGef" } variable secret_key { default = "vousesnM5wY7as" } :::::::::::::: versions.tf :::::::::::::: terraform { required_providers { ncloud = { source = "navercloudplatform/ncloud" } } required_version = ">= 0.13" }