File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
test/fixtures/simple_regional_with_gateway_api Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ locals {
18
+ cluster_index = 1
19
+ }
20
+
17
21
module "example" {
18
22
source = " ../../../examples/simple_regional_with_gateway_api"
19
23
20
- project_id = var. project_ids [2 ]
24
+ project_id = var. project_ids [local . cluster_index ]
21
25
cluster_name_suffix = " -${ random_string . suffix . result } "
22
26
region = var. region
23
27
network = google_compute_network. main . name
24
28
subnetwork = google_compute_subnetwork. main . name
25
29
ip_range_pods = google_compute_subnetwork. main . secondary_ip_range [0 ]. range_name
26
30
ip_range_services = google_compute_subnetwork. main . secondary_ip_range [1 ]. range_name
27
- compute_engine_service_account = var. compute_engine_service_accounts [0 ]
31
+ compute_engine_service_account = var. compute_engine_service_accounts [local . cluster_index ]
28
32
skip_provisioners = true
29
33
enable_binary_authorization = true
30
34
gateway_api_channel = " CHANNEL_STANDARD"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ resource "random_string" "suffix" {
21
21
}
22
22
23
23
provider "google" {
24
- project = var. project_ids [0 ]
24
+ project = var. project_ids [local . cluster_index ]
25
25
}
26
26
27
27
resource "google_compute_network" "main" {
You can’t perform that action at this time.
0 commit comments