Skip to content

Commit

Permalink
added conditional to VPC creation and removed old partner code
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaus-near committed Mar 18, 2024
1 parent 3db7591 commit 82cccd5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 146 deletions.
1 change: 1 addition & 0 deletions infra/partner-vm-testnet/network.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module "vpc" {
count = var.create_network ? 1 : 0
source = "terraform-google-modules/network/google"
version = "~> 9.0"

Expand Down
7 changes: 6 additions & 1 deletion infra/partner-vm-testnet/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ variable "region" {
variable "network" {
description = "The GCP network"
type = string
default = "multichain-network"
default = "default"
}

variable "additional_metadata" {
Expand Down Expand Up @@ -121,3 +121,8 @@ variable "static_env" {
}
]
}

variable "create_network" {
default = false
description = "Do you want to create a new VPC network or use default GCP network?"
}
90 changes: 0 additions & 90 deletions infra/partner/main.tf

This file was deleted.

13 changes: 0 additions & 13 deletions infra/partner/template.tfvars

This file was deleted.

42 changes: 0 additions & 42 deletions infra/partner/variables.tf

This file was deleted.

0 comments on commit 82cccd5

Please sign in to comment.