Skip to content

Commit

Permalink
fix: update modules references to point to hashicorp module registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mounika-nalla authored Jun 19, 2023
1 parent 569a6ff commit 6b18801
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ If the `clean_default_security_group` or `clean_default_acl` input variables are
## Usage
```terraform
module vpc {
# Replace "main" with a GIT release version to lock into a specific release
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc.git?ref=main"
source = "terraform-ibm-modules/landing-zone-vpc/ibm"
version = "latest" # Replace "latest" with a release version to lock into a specific release
resource_group_id = var.resource_group_id
region = var.region
prefix = var.prefix
Expand Down
9 changes: 6 additions & 3 deletions examples/landing_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
##############################################################################

module "resource_group" {
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-resource-group.git?ref=v1.0.5"
source = "terraform-ibm-modules/resource-group/ibm"
version = "1.0.5"
# if an existing resource group is not set (null) create a new one using prefix
resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null
existing_resource_group_name = var.resource_group
Expand All @@ -15,7 +16,8 @@ module "resource_group" {

module "cos_bucket" {
count = var.enable_vpc_flow_logs ? 1 : 0
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-cos.git?ref=v6.6.1"
source = "terraform-ibm-modules/cos/ibm"
version = "6.6.2"
resource_group_id = module.resource_group.resource_group_id
region = var.region
cross_region_location = null
Expand Down Expand Up @@ -64,7 +66,8 @@ module "management_vpc" {
##############################################################################

module "tg_gateway_connection" {
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-transit-gateway.git?ref=v2.1.1"
source = "terraform-ibm-modules/transit-gateway/ibm"
version = "2.1.1"
transit_gateway_name = "${var.prefix}-tg"
region = var.region
global_routing = false
Expand Down

0 comments on commit 6b18801

Please sign in to comment.