Skip to content

Commit

Permalink
deprecate this module
Browse files Browse the repository at this point in the history
  • Loading branch information
Sungmin Lee authored and Sungmin Lee committed Oct 5, 2022
1 parent 1161b2f commit 69d246a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
8 changes: 5 additions & 3 deletions docs/with-multiple-vpc-module.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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
}
```

Expand All @@ -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 })]
}
```
2 changes: 2 additions & 0 deletions docs/with-single-vpc-module.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit 69d246a

Please sign in to comment.