cowork
This commit is contained in:
15
prod-hq-efs/.terraform.lock.hcl
generated
15
prod-hq-efs/.terraform.lock.hcl
generated
@ -6,20 +6,5 @@ provider "registry.terraform.io/hashicorp/aws" {
|
||||
constraints = "~> 3.0"
|
||||
hashes = [
|
||||
"h1:UOk/iZppUGLh2zjmKJKKWCD6e79GsQokO2xfzOcKjxo=",
|
||||
"zh:1cf933104a641ffdb64d71a76806f4df35d19101b47e0eb02c9c36bd64bfdd2d",
|
||||
"zh:273afaf908775ade6c9d32462938e7739ee8b00a0de2ef3cdddc5bc115bb1d4f",
|
||||
"zh:2bc24ae989e38f575de034083082c69b41c54b8df69d35728853257c400ce0f4",
|
||||
"zh:53ba88dbdaf9f818d35001c3d519a787f457283d9341f562dc3d0af51fd9606e",
|
||||
"zh:5cdac7afea68bbd89d3bdb345d99470226482eff41f375f220fe338d2e5808da",
|
||||
"zh:63127808890ac4be6cff6554985510b15ac715df698d550a3e722722dc56523c",
|
||||
"zh:97a1237791f15373743189b078a0e0f2fa4dd7d7474077423376cd186312dc55",
|
||||
"zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425",
|
||||
"zh:a4f625e97e5f25073c08080e4a619f959bc0149fc853a6b1b49ab41d58b59665",
|
||||
"zh:b56cca54019237941f7614e8d2712586a6ab3092e8e9492c70f06563259171e9",
|
||||
"zh:d4bc33bfd6ac78fb61e6d48a61c179907dfdbdf149b89fb97272c663989a7fcd",
|
||||
"zh:e0089d73fa56d128c574601305634a774eebacf4a84babba71da10040cecf99a",
|
||||
"zh:e957531f1d92a6474c9b02bd9200da91b99ba07a0ab761c8e3176400dd41721c",
|
||||
"zh:eceb85818d57d8270db4df7564cf4ed51b5c650a361aaa017c42227158e1946b",
|
||||
"zh:f565e5caa1b349ec404c6d03d01c68b02233f5485ed038d0aab810dd4023a880",
|
||||
]
|
||||
}
|
||||
|
@ -1,16 +1,17 @@
|
||||
// prod-hq-efs - main
|
||||
provider "aws" {
|
||||
region = "ap-northeast-2"
|
||||
|
||||
#2.x버전의 AWS공급자 허용
|
||||
region = "ap-northeast-2"
|
||||
profile = "22shop"
|
||||
shared_credentials_file = "C:/Users/aa/.aws/credentials"
|
||||
#3.x버전의 AWS공급자 허용
|
||||
version = "~> 3.0"
|
||||
|
||||
}
|
||||
|
||||
locals {
|
||||
// 초기 설정값
|
||||
vpc_id = data.terraform_remote_state.hq_vpc_id.outputs.vpc_id
|
||||
public_subnet = data.terraform_remote_state.hq_vpc_id.outputs.subnet
|
||||
# subnet = data.terraform_remote_state.hq_vpc_id.outputs.public_subnet
|
||||
subnet = data.terraform_remote_state.hq_vpc_id.outputs.private_subnet
|
||||
common_tags = {
|
||||
project = "22shop-efs"
|
||||
owner = "icurfer"
|
||||
@ -46,10 +47,10 @@ data "terraform_remote_state" "hq_vpc_id" {
|
||||
backend = "remote"
|
||||
|
||||
config = {
|
||||
organization = "icurfer" // 초기 설정값
|
||||
organization = "22shop"
|
||||
|
||||
workspaces = {
|
||||
name = "tf-cloud-network"
|
||||
name = "hq-network"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -92,10 +93,10 @@ module "efs_fs" {
|
||||
|
||||
}
|
||||
|
||||
module "efs-mnt_tg" {
|
||||
module "efs-mnt_tg1" {
|
||||
source = "../modules/efs-mnt-tg"
|
||||
fs_id = module.efs_fs.efs_fs_id
|
||||
subnet_id = "${local.public_subnet.zone-a.id}"
|
||||
subnet_id = "${local.subnet.zone-a.id}"
|
||||
sg_list = [module.efs_sg.sg_id]
|
||||
|
||||
depends_on = [
|
||||
@ -103,10 +104,10 @@ module "efs-mnt_tg" {
|
||||
]
|
||||
}
|
||||
|
||||
module "efs-mnt_t2" {
|
||||
module "efs-mnt_tg2" {
|
||||
source = "../modules/efs-mnt-tg"
|
||||
fs_id = module.efs_fs.efs_fs_id
|
||||
subnet_id = "${local.public_subnet.zone-c.id}"
|
||||
subnet_id = "${local.subnet.zone-c.id}"
|
||||
sg_list = [module.efs_sg.sg_id]
|
||||
|
||||
depends_on = [
|
||||
|
@ -1,10 +1,10 @@
|
||||
terraform {
|
||||
backend "remote"{
|
||||
hostname = "app.terraform.io"
|
||||
organization = "icurfer"
|
||||
organization = "22shop"
|
||||
|
||||
workspaces {
|
||||
name = "tf-cloud-efs"
|
||||
name = "hq-efs"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user