이 문서에서는 더 이상 필요하지 않은 관리형 인스턴스 그룹(MIG)을 삭제하여 여기에 사용되는 리소스에 대한 비용 지불을 중지하는 방법을 설명합니다.
시작하기 전에
-
아직 인증을 설정하지 않았다면 설정합니다.
인증은 Trusted Cloud by S3NS 서비스 및 API에 액세스하기 위해 ID를 확인하는 프로세스입니다.
로컬 개발 환경에서 코드 또는 샘플을 실행하려면 다음 옵션 중 하나를 선택하여 Compute Engine에 인증하면 됩니다.
Select the tab for how you plan to use the samples on this page:
Console
When you use the Trusted Cloud console to access Trusted Cloud by S3NS services and APIs, you don't need to set up authentication.
gcloud
-
After installing the Google Cloud CLI, sign in to the gcloud CLI with your federated identity and then initialize it by running the following command:
gcloud init
- Set a default region and zone.
Trusted Cloud 콘솔에서 인스턴스 그룹 페이지로 이동합니다.
목록에서 삭제할 그룹을 하나 이상 선택합니다.
삭제를 클릭하여 그룹과 관리형 인스턴스 그룹에 속한 모든 VM을 삭제합니다.
REST
로컬 개발 환경에서 이 페이지의 REST API 샘플을 사용하려면 gcloud CLI에 제공한 사용자 인증 정보를 사용합니다.
After installing the Google Cloud CLI, sign in to the gcloud CLI with your federated identity and then initialize it by running the following command:
gcloud init
자세한 내용은 Trusted Cloud 인증 문서의 REST 사용을 위한 인증을 참조하세요.
MIG 삭제
관리형 인스턴스 그룹을 삭제하면 그룹의 모든 VM이 삭제됩니다. VM을 유지하려면 먼저 VM을 폐기하여 그룹에서 VM을 삭제합니다. 그런 다음 관리형 인스턴스 그룹을 삭제합니다.
MIG의 인스턴스 템플릿에 디스크를 정의할 때 디스크의 자동 삭제 속성을 true로 설정한 경우에만 MIG의 디스크가 삭제됩니다. 디스크의 자동 삭제 속성이 false로 설정된 경우 디스크가 더 이상 필요하지 않을 때 수동으로 삭제할 수 있습니다.
Trusted Cloud console 또는 gcloud CLI를 사용하여 관리형 인스턴스 그룹과 그룹 내 인스턴스를 삭제하면 연결된 자동 확장 처리가 자동으로 삭제됩니다. 하지만 REST를 사용할 경우 먼저 개별 요청을 수행하여
autoscalers.delete
메서드 또는regionAutoscalers.delete
메서드로 연결된 자동 확장 처리를 삭제해야 합니다. 먼저 관리형 인스턴스 그룹을 삭제한 경우에도 REST를 사용하여 연결된 자동 확장 처리를 삭제할 수 있습니다.각 디스크의 자동 삭제 속성을 재정의하여 연결된 인스턴스가 삭제될 때 디스크를 삭제할지 여부를 지정할 수 있습니다.
콘솔
gcloud
delete
명령어를 사용합니다.gcloud compute instance-groups managed delete INSTANCE_GROUP_NAME \ --zone ZONE
REST
영역 또는 리전 MIG 리소스에 대해
delete
메서드를 호출합니다. MIG에 연결된 자동 확장 처리가 있으면 먼저autoscalers.delete
메서드 또는regionAutoscalers.delete
메서드를 사용하여 자동 확장 처리를 삭제해야 합니다.DELETE https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instanceGroupManagers/INSTANCE_GROUP_NAME
인스턴스 그룹이 리전 관리형 인스턴스 그룹이면
zones/ZONE
을regions/REGION
으로 바꿉니다.다음 단계
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-30(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-30(UTC)"],[[["This guide explains how to delete a managed instance group (MIG) and its associated resources to avoid incurring unnecessary costs."],["Deleting a MIG will remove all virtual machines (VMs) within it, unless you choose to abandon specific VMs beforehand."],["Disks within the MIG will only be deleted automatically if their auto-delete property was set to true during the MIG's template configuration, otherwise manual deletion is necessary."],["If a MIG is associated with a load balancer's backend service, the backend service must be removed before deleting the MIG, and any autoscalers attached to the MIG must be deleted separately when using the REST API."],["The process can be done using the Google Cloud Console, gcloud CLI, or REST API, each with specific instructions and requirements."]]],[]] -