-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
61 lines (56 loc) · 2.09 KB
/
Copy pathmain.tf
File metadata and controls
61 lines (56 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
# Project module managing API enablement and optionally project creation
module "project" {
source = "github.com/GoogleCloudPlatform/cloud-foundation-fabric//modules/project?ref=v40.0.0&depth=1"
billing_account = var.billing_account
name = var.project_id
parent = var.parent
prefix = var.prefix
project_reuse = var.project_create ? null : {}
services = [
"compute.googleapis.com",
"vmwareengine.googleapis.com",
]
}
# Note on Private Cloud Node Count & Type Trade-off:
# We are provisioning a single-node private cloud, which automatically
# configures the type as "TIME_LIMITED" inside the Fabric GCVE module.
#
# - TIME_LIMITED (1 node): Ideal for short-term testing and evaluation.
# It has a maximum lifespan (typically 60 days) and does not support
# production SLA or high availability (vSphere HA / vSAN replica).
# - STANDARD (3+ nodes): Required for production. Supports high
# availability, full SLA, and persistent storage, but incurs higher cost.
module "gcve" {
source = "github.com/GoogleCloudPlatform/cloud-foundation-fabric//modules/gcve-private-cloud?ref=v40.0.0&depth=1"
prefix = var.prefix
project_id = module.project.project_id
vmw_network_config = {
create = true
name = "vmw-network"
}
vmw_private_cloud_configs = {
pcc-primary = {
cidr = var.gcve_cidr
zone = var.gcve_zone
management_cluster_config = {
node_count = 1
node_type_id = var.gcve_node_type
}
}
}
}