Skip to content

Commit

Permalink
chore: add option to pass prefix on public network example
Browse files Browse the repository at this point in the history
  • Loading branch information
assafgi committed Jan 26, 2023
1 parent dfbbc47 commit 72927bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/public_vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ provider "google" {
module "create_service_account" {
source = "../../modules/service_account"
project = var.project
prefix = var.prefix
}

/***********************************
Expand All @@ -17,6 +18,7 @@ module "create_service_account" {
module "setup_network" {
source = "../../modules/setup_network"
project = var.project
prefix = var.prefix
region = var.region
subnets-cidr-range = var.subnets_cidr_range
zone = var.zone
Expand All @@ -30,6 +32,7 @@ module "deploy_weka" {
source = "../.."
cluster_name = var.cluster_name
project = var.project
prefix = var.prefix
vpcs = module.setup_network.vpcs_names
region = var.region
subnets_name = module.setup_network.subnetwork_name
Expand Down
6 changes: 6 additions & 0 deletions examples/public_vpc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ variable "project" {
description = "Project id"
}

variable "prefix" {
type = string
description = "Prefix for all resources"
default = "weka"
}

variable "region" {
type = string
description = "Region name"
Expand Down

0 comments on commit 72927bc

Please sign in to comment.