File tree Expand file tree Collapse file tree 3 files changed +102
-0
lines changed
Expand file tree Collapse file tree 3 files changed +102
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ func ResourceConverters() map[string][]cai.ResourceConverter {
216216 "google_vmwareengine_network_policy": {vmwareengine.ResourceConverterVmwareengineNetworkPolicy()},
217217 "google_vmwareengine_network_peering": {vmwareengine.ResourceConverterVmwareengineNetworkPeering()},
218218 "google_workbench_instance": {workbench.ResourceConverterWorkbenchInstance()},
219+ "google_vmwareengine_private_cloud": {vmwareengine.ResourceConverterVmwareenginePrivateCloud()},
219220 {{- range $object := $.IamResources }}
220221 {{- if $object.IamClassName }}
221222 "{{ $object.TerraformName }}_iam_policy": { {{- $object.IamClassName }}IamPolicy()},
Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "name" : " //vmwareengine.googleapis.com/projects/{{.Provider.project}}/locations/us-central1-a/privateClouds/gg-asset-pc-00563-8560" ,
4+ "asset_type" : " vmwareengine.googleapis.com/PrivateCloud" ,
5+ "ancestry_path" : " {{.Ancestry}}/project/{{.Provider.project}}" ,
6+ "resource" : {
7+ "version" : " v1" ,
8+ "discovery_document_uri" : " https://vmwareengine.googleapis.com/$discovery/rest" ,
9+ "discovery_name" : " PrivateCloud" ,
10+ "parent" : " //cloudresourcemanager.googleapis.com/projects/{{.Provider.project}}" ,
11+ "data" : {
12+ "description" : " Standard Private Cloud" ,
13+ "managementCluster" : {
14+ "clusterId" : " gg-asset-mgmt-cl-00563-8560" ,
15+ "nodeTypeConfigs" : {
16+ "standard-72" : {
17+ "nodeCount" : 3 ,
18+ "customCoreCount" : 36
19+ },
20+ "standard-128" : {
21+ "nodeCount" : 3
22+ }
23+ },
24+ "autoscalingSettings" : {
25+ "autoscalingPolicies" : {
26+ "autoscaling-policy" : {
27+ "nodeTypeId" : " standard-72" ,
28+ "scaleOutSize" : 1 ,
29+ "cpuThresholds" : {
30+ "scaleOut" : 80 ,
31+ "scaleIn" : 15
32+ },
33+ "consumedMemoryThresholds" : {
34+ "scaleOut" : 75 ,
35+ "scaleIn" : 20
36+ },
37+ "storageThresholds" : {
38+ "scaleOut" : 80 ,
39+ "scaleIn" : 20
40+ }
41+ }
42+ },
43+ "minClusterNodeCount" : 3 ,
44+ "maxClusterNodeCount" : 8 ,
45+ "coolDownPeriod" : " 1800s"
46+ }
47+ },
48+ "networkConfig" : {
49+ "managementCidr" : " 192.168.0.0/24" ,
50+ "vmwareEngineNetwork" : " projects/{{.Provider.project}}/locations/global/vmwareEngineNetworks/test_vmware_network"
51+ }
52+ }
53+ }
54+ }
55+ ]
Original file line number Diff line number Diff line change 1+ resource "google_vmwareengine_private_cloud" "main" {
2+ name = " gg-asset-pc-00563-8560"
3+ location = " us-central1-a"
4+ description = " Standard Private Cloud"
5+ project = " {{.Provider.project}}"
6+
7+ network_config {
8+ management_cidr = " 192.168.0.0/24"
9+ vmware_engine_network = " projects/{{.Provider.project}}/locations/global/vmwareEngineNetworks/test_vmware_network"
10+ }
11+
12+ management_cluster {
13+ cluster_id = " gg-asset-mgmt-cl-00563-8560"
14+ node_type_configs {
15+ node_type_id = " standard-72"
16+ node_count = 3
17+ custom_core_count = 36
18+ }
19+ node_type_configs {
20+ node_type_id = " standard-128"
21+ node_count = 3
22+ }
23+ autoscaling_settings {
24+ autoscaling_policies {
25+ autoscale_policy_id = " autoscaling-policy"
26+ node_type_id = " standard-72"
27+ scale_out_size = 1
28+ cpu_thresholds {
29+ scale_out = 80
30+ scale_in = 15
31+ }
32+ consumed_memory_thresholds {
33+ scale_out = 75
34+ scale_in = 20
35+ }
36+ storage_thresholds {
37+ scale_out = 80
38+ scale_in = 20
39+ }
40+ }
41+ min_cluster_node_count = 3
42+ max_cluster_node_count = 8
43+ cool_down_period = " 1800s"
44+ }
45+ }
46+ }
You can’t perform that action at this time.
0 commit comments