Skip to content

Commit

Permalink
feat: moved the management-vpc and workload-vpc submodule from th…
Browse files Browse the repository at this point in the history
…e `submodules` directory to the `modules` directory to confirm with Hashicorp practises. See updated usage blocks on how to consume. (#694)
  • Loading branch information
Aayush-Abhyarthi committed Jan 25, 2024
1 parent 202be38 commit f583bbb
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ This module creates the following IBM Cloud® Virtual Private Cloud (VPC) net
<!-- BEGIN OVERVIEW HOOK -->
## Overview
* [terraform-ibm-landing-zone-vpc](#terraform-ibm-landing-zone-vpc)
* [Submodules](./modules)
* [management-vpc](./modules/management-vpc)
* [workload-vpc](./modules/workload-vpc)
* [Examples](./examples)
* [Basic Example](./examples/basic)
* [Default Example](./examples/default)
Expand All @@ -38,7 +41,7 @@ This module creates the following IBM Cloud&reg; Virtual Private Cloud (VPC) net

### Presets

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.
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.

### Usage
```terraform
Expand Down
2 changes: 1 addition & 1 deletion examples/landing_zone/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Landing Zone example

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).
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).

The example shows how to use the base modules to create the following topology:
- A management VPC
Expand Down
4 changes: 2 additions & 2 deletions examples/landing_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module "cos_bucket" {
#############################################################################

module "workload_vpc" {
source = "../../landing-zone-submodule/workload-vpc/"
source = "../../modules/workload-vpc/"
resource_group_id = module.resource_group.resource_group_id
region = var.region
prefix = "${var.prefix}-workload"
Expand All @@ -48,7 +48,7 @@ module "workload_vpc" {


module "management_vpc" {
source = "../../landing-zone-submodule/management-vpc/"
source = "../../modules/management-vpc/"
resource_group_id = module.resource_group.resource_group_id
region = var.region
prefix = "${var.prefix}-management"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ You can use this submodule when you need more modularity to create your topology

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

### Usage
```terraform
module management_vpc {
source = "terraform-ibm-modules/landing-zone-vpc/ibm//modules/management-vpc"
version = "X.X.X" # replace X.X.X with a release version to lock into an exact release
name = "management"
region = "us-south"
prefix = "management-vpc"
}
```

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
### Requirements

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ You can use this submodule when you need more modularity to create your topology

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

### Usage
```terraform
module workload_vpc {
source = "terraform-ibm-modules/landing-zone-vpc/ibm//modules/workload-vpc"
version = "X.X.X" # replace X.X.X with a release version to lock into an exact release
name = "workload"
region = "us-south"
prefix = "workload-vpc"
}
```

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

0 comments on commit f583bbb

Please sign in to comment.