Skip to content

Commit

Permalink
Necessary change to git remote module URL format.
Browse files Browse the repository at this point in the history
Basically changing things around and removing double slashes.
AS per hashicorp/terraform#21107 (comment)
  • Loading branch information
smjmoj committed Jun 25, 2020
1 parent b621e26 commit 1456414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ locals {
# MODULES
############################
module "route-to-internet" {
source = "git::https://github.com/ministryofjustice/hmpps-terraform-modules.git?ref=master//modules//routes//internetgateway"
source = "git::https://github.com/ministryofjustice/hmpps-terraform-modules.git//modules/routes/internetgateway?ref=master"
route_table_id = "${local.route_table_public_ids}"
destination_cidr_block = "${local.destination_cidr_blocks}"
gateway_id = "${data.terraform_remote_state.internetgateway.internetgateway_env_igw_id}"
Expand All @@ -81,7 +81,7 @@ module "route-to-internet" {
# ## be deleted.
# # PRIVATE NETWORK
module "route-private-to-nat" {
source = "git::https://github.com/ministryofjustice/hmpps-terraform-modules.git?ref=master//modules//routes//natgateway"
source = "git::https://github.com/ministryofjustice/hmpps-terraform-modules.git//modules/routes/natgateway?ref=master"
route_table_id = "${local.route_table_private_ids}"
destination_cidr_block = "${local.destination_cidr_blocks}"
nat_gateway_id = "${local.nat_gateway_ids}"
Expand All @@ -92,7 +92,7 @@ module "route-private-to-nat" {
# ## be deleted.
# # DB NETWORK
module "route-db-to-nat" {
source = "git::https://github.com/ministryofjustice/hmpps-terraform-modules.git?ref=master//modules//routes//natgateway"
source = "git::https://github.com/ministryofjustice/hmpps-terraform-modules.git//modules/routes/natgateway?ref=master"
route_table_id = "${local.route_table_db_ids}"
destination_cidr_block = "${local.destination_cidr_blocks}"
nat_gateway_id = "${local.nat_gateway_ids}"
Expand Down

0 comments on commit 1456414

Please sign in to comment.