Skip to content

Commit

Permalink
fix: update project id for network and project
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyz authored and tuunit committed Dec 30, 2022
1 parent c88e19c commit 01530c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions test/fixtures/simple_regional_with_gateway_api/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@
* limitations under the License.
*/

locals {
cluster_index = 1
}

module "example" {
source = "../../../examples/simple_regional_with_gateway_api"

project_id = var.project_ids[2]
project_id = var.project_ids[local.cluster_index]
cluster_name_suffix = "-${random_string.suffix.result}"
region = var.region
network = google_compute_network.main.name
subnetwork = google_compute_subnetwork.main.name
ip_range_pods = google_compute_subnetwork.main.secondary_ip_range[0].range_name
ip_range_services = google_compute_subnetwork.main.secondary_ip_range[1].range_name
compute_engine_service_account = var.compute_engine_service_accounts[0]
compute_engine_service_account = var.compute_engine_service_accounts[local.cluster_index]
skip_provisioners = true
enable_binary_authorization = true
gateway_api_channel = "CHANNEL_STANDARD"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/simple_regional_with_gateway_api/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "random_string" "suffix" {
}

provider "google" {
project = var.project_ids[0]
project = var.project_ids[local.cluster_index]
}

resource "google_compute_network" "main" {
Expand Down

0 comments on commit 01530c0

Please sign in to comment.