File tree Expand file tree Collapse file tree 6 files changed +170
-1
lines changed
workbench_create_metadata
workbench_remove_metadata
workbench_update_metadata Expand file tree Collapse file tree 6 files changed +170
-1
lines changed Original file line number Diff line number Diff line change 11/* *
2- * Copyright 2023 Google LLC
2+ * Copyright 2024 Google LLC
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2024 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+
18+ # [START aiplatform_workbench_create_metadata]
19+ resource "google_workbench_instance" "default" {
20+ name = " workbench-instance-example"
21+ location = " us-central1-a"
22+
23+ gce_setup {
24+ machine_type = " n1-standard-1"
25+ vm_image {
26+ project = " deeplearning-platform-release"
27+ family = " tf-latest-gpu"
28+ }
29+ metadata = {
30+ key = " value"
31+ }
32+ }
33+ }
34+ # [END aiplatform_workbench_create_metadata]
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2024 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+
18+ # [START aiplatform_workbench_create_dataproc]
19+ resource "google_workbench_instance" "default" {
20+ name = " workbench-instance-example"
21+ location = " us-central1-a"
22+
23+ gce_setup {
24+ machine_type = " n1-standard-1"
25+ vm_image {
26+ project = " deeplearning-platform-release"
27+ family = " tf-latest-gpu"
28+ }
29+ metadata = {
30+ disable-mixer = " false"
31+ }
32+ }
33+ }
34+ # [END aiplatform_workbench_create_dataproc]
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2024 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+
18+ # [START aiplatform_workbench_create_idle_shutdown]
19+ resource "google_workbench_instance" "default" {
20+ name = " workbench-instance-example"
21+ location = " us-central1-a"
22+
23+ gce_setup {
24+ machine_type = " n1-standard-1"
25+ vm_image {
26+ project = " deeplearning-platform-release"
27+ family = " tf-latest-gpu"
28+ }
29+ metadata = {
30+ idle-timeout-seconds = " 10800"
31+ }
32+ }
33+ }
34+ # [END aiplatform_workbench_create_idle_shutdown]
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2024 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+
18+ # [START aiplatform_workbench_deleted_metadata]
19+ resource "google_workbench_instance" "default" {
20+ name = " workbench-instance-example"
21+ location = " us-central1-a"
22+
23+ gce_setup {
24+ machine_type = " n1-standard-1"
25+ vm_image {
26+ project = " deeplearning-platform-release"
27+ family = " tf-latest-gpu"
28+ }
29+ metadata = {
30+ }
31+ }
32+ }
33+ # [END aiplatform_workbench_deleted_metadata]
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2024 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+
18+ # [START aiplatform_workbench_updated_metadata]
19+ resource "google_workbench_instance" "default" {
20+ name = " workbench-instance-example"
21+ location = " us-central1-a"
22+
23+ gce_setup {
24+ machine_type = " n1-standard-1"
25+ vm_image {
26+ project = " deeplearning-platform-release"
27+ family = " tf-latest-gpu"
28+ }
29+ metadata = {
30+ key = " updated_value"
31+ }
32+ }
33+ }
34+ # [END aiplatform_workbench_updated_metadata]
You can’t perform that action at this time.
0 commit comments