Skip to content

Commit d4fa379

Browse files
authored
Feature gap: Add groupPlacementPolicy.tpuTopology (#13398)
Signed-off-by: Cezary Sobczak <[email protected]>
1 parent b36cc2d commit d4fa379

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

mmv1/products/compute/ResourcePolicy.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ examples:
9999
min_version: 'beta'
100100
vars:
101101
name: 'gce-policy'
102+
- name: 'resource_policy_placement_policy_tpu_topology'
103+
primary_resource_id: 'baz'
104+
min_version: 'beta'
105+
vars:
106+
name: 'gce-policy'
102107
parameters:
103108
- name: 'region'
104109
type: ResourceRef
@@ -332,6 +337,12 @@ properties:
332337
- group_placement_policy.0.max_distance
333338
immutable: true
334339
min_version: 'beta'
340+
- name: 'tpuTopology'
341+
type: String
342+
description: |
343+
Specifies the shape of the TPU slice.
344+
immutable: true
345+
min_version: 'beta'
335346
- name: 'instanceSchedulePolicy'
336347
type: NestedObject
337348
description: |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
resource "google_compute_resource_policy" "baz" {
2+
name = "{{index $.Vars "name"}}"
3+
region = "us-central1"
4+
provider = google-beta
5+
group_placement_policy {
6+
vm_count = 2
7+
collocation = "COLLOCATED"
8+
tpu_topology = "4x4"
9+
}
10+
}

0 commit comments

Comments
 (0)