diff --git a/compute/stateful_instance_group_manager/metadata/main.tf b/compute/stateful_instance_group_manager/metadata/main.tf deleted file mode 100644 index 9a65ea2e1..000000000 --- a/compute/stateful_instance_group_manager/metadata/main.tf +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Copyright 2023 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. - */ - -/** - * Made to resemble: - * gcloud compute instance-groups managed [create-instance|instance-configs update] example-cluster \ - * --instance node-12 \ - * --stateful-metadata mode=active,logging=elaborate - */ - -# [START compute_stateful_instance_group_manager_metadata_parent_tag] -resource "google_compute_instance_template" "default" { - machine_type = "e2-medium" - - disk { - source_image = "debian-cloud/debian-11" - } - - network_interface { - network = "default" - } -} - -resource "google_compute_instance_group_manager" "default" { - name = "example-cluster" - base_instance_name = "test" - target_size = 1 - zone = "europe-west4-a" - - version { - instance_template = google_compute_instance_template.default.id - name = "primary" - } -} -# [START compute_stateful_instance_group_manager_metadata_pic] -resource "google_compute_per_instance_config" "default" { - instance_group_manager = google_compute_instance_group_manager.default.name - zone = google_compute_instance_group_manager.default.zone - name = "node-12" - preserved_state { - metadata = { - mode = "active" - logging = "elaborate" - } - } -} -# [END compute_stateful_instance_group_manager_metadata_pic] -# [END compute_stateful_instance_group_manager_metadata_parent_tag]