From 69d246a5dde65368cb26820b911d45bf572bb742 Mon Sep 17 00:00:00 2001 From: Sungmin Lee Date: Thu, 6 Oct 2022 04:13:44 +0900 Subject: [PATCH] deprecate this module --- README.md | 2 ++ docs/with-multiple-vpc-module.md | 8 +++++--- docs/with-single-vpc-module.md | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6162bd2..f379457 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Ncloud Access Control Group Terraform module +### **This module is deprecated. ACG management is integrated into `access_control_group` inside the `VPC module`.** + You can use this module to create multiple Access Control Group. Choose one of the scenarios below. This module is intended to be used together with the [VPC module](https://registry.terraform.io/modules/terraform-ncloud-modules/vpc/ncloud/latest). Choose one of the two scenarios below depending on whether you are using [single VPC module](https://github.com/terraform-ncloud-modules/terraform-ncloud-vpc/blob/master/docs/single-vpc.md) or [multiple VPC module](https://github.com/terraform-ncloud-modules/terraform-ncloud-vpc/blob/master/docs/multiple-vpc.md). diff --git a/docs/with-multiple-vpc-module.md b/docs/with-multiple-vpc-module.md index ca90727..2b6093e 100644 --- a/docs/with-multiple-vpc-module.md +++ b/docs/with-multiple-vpc-module.md @@ -1,5 +1,7 @@ # ACG Module with multiple VPC Module +### **This module is deprecated. ACG management is integrated into `access_control_group` inside the `VPC module`.** + This document describes the Terraform module that creates `Ncloud Access Control Groups`. If you want to use `ACG module` with [multiple VPC Module](https://github.com/terraform-ncloud-modules/terraform-ncloud-vpc/blob/master/docs/multiple-vpc.md), please refer to this article. @@ -96,8 +98,8 @@ Map your (`ACG variable name` & `VPC module name`) to (`local ACG variable` & `l ``` hcl locals { - acgs = var.access_control_groups - vpcs = module.vpcs + acgs = var.access_control_groups + acg_vpcs = module.vpcs } ``` @@ -107,6 +109,6 @@ Then just copy and paste the module declaration below. module "access_control_groups" { source = "terraform-ncloud-modules/acg/ncloud" - access_control_groups = [for acg in local.acgs : merge(acg, { vpc_id = local.vpcs[acg.vpc_name].vpc.id })] + access_control_groups = [for acg in local.acgs : merge(acg, { vpc_id = local.acg_vpcs[acg.vpc_name].vpc.id })] } ``` \ No newline at end of file diff --git a/docs/with-single-vpc-module.md b/docs/with-single-vpc-module.md index 28172db..89a22cc 100644 --- a/docs/with-single-vpc-module.md +++ b/docs/with-single-vpc-module.md @@ -1,5 +1,7 @@ # ACG Module with single VPC Module +### **This module is deprecated. ACG management is integrated into `access_control_group` inside the `VPC module`.** + This document describes the Terraform module that creates `Ncloud Access Control Groups`. If you want to use `ACG module` with [single VPC Module](https://github.com/terraform-ncloud-modules/terraform-ncloud-vpc/blob/master/docs/single-vpc.md), please refer to this article.