기존 로컬 자료 복사

This commit is contained in:
2022-12-26 11:33:19 +09:00
parent 1a3ae97c58
commit a0d22896a0
16 changed files with 214 additions and 0 deletions

39
prod/main.tf Normal file
View File

@ -0,0 +1,39 @@
provider "aws" {
region = "ap-northeast-2"
#2.x버전의 AWS공급자 허용
version = "~> 2.0"
}
module "vpc_hq" {
source = "../modules/vpc"
cidr_block = var.cidr_block
}
# resource "aws_vpc" "vpcHq" {
# cidr_block = "10.3.0.0/16"
# // instance_tenancy = "default"
# tags = {
# Name = "test"
# }
# }
module "subnet_list" {
}
resource "aws_subnet" "subnets" {
vpc_id = module.vpc_hq.vpc_hq_id
for_each = var.subnet-az-list
availability_zone = each.value.name
cidr_block = each.value.cidr
map_public_ip_on_launch = true
# tags = {
# # Name = "${each.value.name}"
# Name = module.vpc_hq.vpcHq.id
# }
}