Skip to content

Commit f583bbb

Browse files
feat: moved the management-vpc and workload-vpc submodule from the submodules directory to the modules directory to confirm with Hashicorp practises. See updated usage blocks on how to consume. (#694)
1 parent 202be38 commit f583bbb

File tree

13 files changed

+28
-4
lines changed

13 files changed

+28
-4
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ This module creates the following IBM Cloud® Virtual Private Cloud (VPC) net
2222
<!-- BEGIN OVERVIEW HOOK -->
2323
## Overview
2424
* [terraform-ibm-landing-zone-vpc](#terraform-ibm-landing-zone-vpc)
25+
* [Submodules](./modules)
26+
* [management-vpc](./modules/management-vpc)
27+
* [workload-vpc](./modules/workload-vpc)
2528
* [Examples](./examples)
2629
* [Basic Example](./examples/basic)
2730
* [Default Example](./examples/default)
@@ -38,7 +41,7 @@ This module creates the following IBM Cloud&reg; Virtual Private Cloud (VPC) net
3841

3942
### Presets
4043

41-
In addition to this root module, this repository provides two submodules that call the root module with presets and defaults that are aligned with the general [Framework for Financial Services](https://cloud.ibm.com/docs/framework-financial-services?topic=framework-financial-services-vpc-architecture-about) management and workload VPC topologies. See the [landing-zone-submodules](/landing-zone-submodule/) for details.
44+
In addition to this root module, this repository provides two submodules that call the root module with presets and defaults that are aligned with the general [Framework for Financial Services](https://cloud.ibm.com/docs/framework-financial-services?topic=framework-financial-services-vpc-architecture-about) management and workload VPC topologies. See the [modules](https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/tree/main/modules) for details.
4245

4346
### Usage
4447
```terraform

examples/landing_zone/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Landing Zone example
22

3-
This example demonstrates how to use the management and workload VPC [modules](../../landing-zone-submodule/) to create a network VPC topology that is aligned with the network segregation key principles of the IBM Cloud [Framework for Financial Services](https://cloud.ibm.com/docs/framework-financial-services?topic=framework-financial-services-vpc-architecture-connectivity-overview).
3+
This example demonstrates how to use the management and workload VPC [modules](https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/tree/main/modules) to create a network VPC topology that is aligned with the network segregation key principles of the IBM Cloud [Framework for Financial Services](https://cloud.ibm.com/docs/framework-financial-services?topic=framework-financial-services-vpc-architecture-connectivity-overview).
44

55
The example shows how to use the base modules to create the following topology:
66
- A management VPC

examples/landing_zone/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module "cos_bucket" {
3333
#############################################################################
3434

3535
module "workload_vpc" {
36-
source = "../../landing-zone-submodule/workload-vpc/"
36+
source = "../../modules/workload-vpc/"
3737
resource_group_id = module.resource_group.resource_group_id
3838
region = var.region
3939
prefix = "${var.prefix}-workload"
@@ -48,7 +48,7 @@ module "workload_vpc" {
4848

4949

5050
module "management_vpc" {
51-
source = "../../landing-zone-submodule/management-vpc/"
51+
source = "../../modules/management-vpc/"
5252
resource_group_id = module.resource_group.resource_group_id
5353
region = var.region
5454
prefix = "${var.prefix}-management"

landing-zone-submodule/management-vpc/README.md renamed to modules/management-vpc/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ You can use this submodule when you need more modularity to create your topology
66

77
See the [Landing Zone example](../../examples/landing_zone/) for runnable code.
88

9+
### Usage
10+
```terraform
11+
module management_vpc {
12+
source = "terraform-ibm-modules/landing-zone-vpc/ibm//modules/management-vpc"
13+
version = "X.X.X" # replace X.X.X with a release version to lock into an exact release
14+
name = "management"
15+
region = "us-south"
16+
prefix = "management-vpc"
17+
}
18+
```
19+
920
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
1021
### Requirements
1122

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

landing-zone-submodule/workload-vpc/README.md renamed to modules/workload-vpc/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ You can use this submodule when you need more modularity to create your topology
66

77
See the [Landing Zone example](../../examples/landing_zone/) for runnable code.
88

9+
### Usage
10+
```terraform
11+
module workload_vpc {
12+
source = "terraform-ibm-modules/landing-zone-vpc/ibm//modules/workload-vpc"
13+
version = "X.X.X" # replace X.X.X with a release version to lock into an exact release
14+
name = "workload"
15+
region = "us-south"
16+
prefix = "workload-vpc"
17+
}
18+
```
919

1020
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
1121
### Requirements
File renamed without changes.

0 commit comments

Comments
 (0)