이 페이지에서는 Infrastructure Manager에서 프로비저닝한 리소스에 대한 정보를 확인하는 방법을 설명합니다.
배포를 업데이트하거나 삭제하기 전에 리소스를 확인하여 상태를 파악하거나 배포에 있는 리소스를 확인할 수 있습니다.
Infrastructure Manager가 Terraform 구성을 배포하면 서비스는 구성에 정의된 Google Cloud 리소스를 프로비저닝하고 구성합니다. 이러한 리소스에 관한 메타데이터는 Terraform 상태 파일에 있으며 Infra Manager는 각 배포 및 버전에 대해 이 파일을 저장합니다.
상태 파일에는 Infra Manager에서 프로비저닝할 때 리소스에 관한 정보가 포함됩니다. Infra Manager 버전에서 수정하지 않는 한 상태 파일과 Infra Manager에는 이러한 리소스가 수정된 경우 리소스에 관한 정보가 없습니다.
예를 들어 Infra Manager를 사용하여 부하 분산기를 배포한 후 Google Cloud 콘솔을 사용하여 부하 분산기를 수정할 수 있습니다.
이 경우 Infra Manager에는 처음 프로비저닝된 부하 분산기에 대한 정보는 있지만 Google Cloud 콘솔을 통해 적용한 변경사항에 대한 정보는 없습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-05(UTC)"],[[["\u003cp\u003eThis page explains how to view the resources provisioned by Infrastructure Manager, which are detailed in the Terraform state file stored for each deployment and revision.\u003c/p\u003e\n"],["\u003cp\u003eInfrastructure Manager tracks resources as initially provisioned but does not automatically reflect modifications made outside of Infrastructure Manager, such as through the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eYou can list the resources associated with a specific deployment revision using the \u003ccode\u003egcloud infra-manager resources list\u003c/code\u003e command, with options to filter and sort the results based on various resource attributes.\u003c/p\u003e\n"],["\u003cp\u003eTo view details about a particular resource, use the \u003ccode\u003egcloud infra-manager resources describe\u003c/code\u003e command followed by the resource's ID.\u003c/p\u003e\n"],["\u003cp\u003eBefore viewing resources, you must ensure that Infrastructure Manager is enabled and that you have the necessary IAM permissions (\u003ccode\u003eroles/config.admin\u003c/code\u003e or \u003ccode\u003eroles/config.viewer\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["# View resources deployed\n\nThis page describes how to view information about resources that are\nprovisioned by Infrastructure Manager.\n\nYou may want to view resources to understand their state, or to see what\nresources exist in a deployment before you update or delete the deployment.\n\nWhen Infrastructure Manager deploys a Terraform configuration, the service provisions\nand configures the Google Cloud resources that are defined in the\nconfiguration. Metadata about these resources are in the Terraform state file,\nand Infra Manager stores this file for each deployment and revision.\n\nThe state file has information about the resources when they are provisioned\nby Infra Manager. The state file and Infra Manager do not\nhave information about these resources if they are modified, unless they\nare modified by a\n[Infra Manager revision](/infrastructure-manager/docs/update-deployment).\n\nFor example, you can use Infra Manager to deploy a load balancer\nand then you can modify the load balancer using the Google Cloud console.\nIn this case, Infra Manager has information about the load balancer\nthat was initially provisioned, but not about the changes that you did\nthrough the Google Cloud console.\n\nIf you need information about the deployment name or state, see\n[View deployments](/infrastructure-manager/docs/view-deployments).\n\nBefore you begin\n----------------\n\n1. Ensure [Infra Manager is enabled](/infrastructure-manager/docs/enable-service).\n2. Ensure you have a service account.\n3. Ensure that you have the IAM permissions needed to view deployments.\n - `roles/config.admin` or `roles/config.viewer`.\n\nList resources provisioned by a deployment\n------------------------------------------\n\nTo list the resources provisioned by a deployment: \n\n gcloud infra-manager resources list --revision=projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/deployments/\u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e/revisions/\u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e\n\nReplace:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID where Infrastructure Manager runs.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the location where Infra Manager runs. See [Infrastructure Manager locations](/infrastructure-manager/docs/locations) for the list of valid locations.\n- \u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e: the deployment identifier of the resource's deployment.\n- \u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e: the revision identifier of the revision you're viewing.\n\n### Filter the list of resources\n\nTo filter the list of resources: \n\n gcloud infra-manager resources list --revision=projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/deployments/\u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e/revisions/\u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e --filter=\u003cvar translate=\"no\"\u003eEXPRESSION\u003c/var\u003e\n\nReplace:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID where Infrastructure Manager runs.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the location where Infra Manager runs. See [Infrastructure Manager locations](/infrastructure-manager/docs/locations) for the list of valid locations.\n- \u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e: the deployment identifier of the resource's deployment.\n- \u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e: the revision identifier of the revision you're viewing and filtering.\n- \u003cvar translate=\"no\"\u003eEXPRESSION\u003c/var\u003e: the expression you are filtering for. Supported expressions are:\n - `terraformInfo.address (string)`\n - `terraformInfo.type (string)`\n - `terraformInfo.id (string)`\n - `state (string)`, one of: `STATE_UNSPECIFIED`, `PLANNED`, `IN_PROGRESS`, `RECONCILED`, `FAILED`\n - `intent(string)`, one of: `INTENT_UNSPECIFIED`, `CREATE`, `UPDATE`, `DELETE`, `RECREATE`, `UNCHANGED`\n - `caiAssets.fullResourceName` (map)\n - `caiAssets.type` (map)\n\n### Sort the list of resources\n\nTo sort the list of resources: \n\n gcloud infra-manager resources list --revision=projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/deployments/\u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e/revisions/\u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e --sort-by=[\u003cvar translate=\"no\"\u003eFIELD\u003c/var\u003e]\n\nReplace:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID where Infrastructure Manager runs.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the location where Infra Manager runs. See [Infrastructure Manager locations](/infrastructure-manager/docs/locations) for the list of valid locations.\n- \u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e: the deployment identifier of the resource's deployment.\n- \u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e: the revision identifier of the revision you're viewing and sorting.\n- \u003cvar translate=\"no\"\u003eFIELD\u003c/var\u003e: the field used to sort. Supported fields are:\n - `name`\n - `terraformInfo.address`\n - `terraformInfo.type`\n - `terraformInfo.id`\n\nView details about a resource\n-----------------------------\n\nTo view details about a specific resource, use the resource ID: \n\n gcloud infra-manager resources describe projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/locations/\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e/deployments/\u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e/revisions/\u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e/resources/\u003cvar translate=\"no\"\u003eRESOURCE_ID\u003c/var\u003e\n\nReplace:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID where Infrastructure Manager runs.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: the location where Infra Manager runs. See [Infrastructure Manager locations](/infrastructure-manager/docs/locations) for the list of valid locations.\n- \u003cvar translate=\"no\"\u003eDEPLOYMENT_ID\u003c/var\u003e: the deployment identifier of the resource's deployment.\n- \u003cvar translate=\"no\"\u003eREVISION_ID\u003c/var\u003e: the revision identifier of the specific revision that deployed the resource.\n- \u003cvar translate=\"no\"\u003eRESOURCE_ID\u003c/var\u003e: the resource ID of the resource you're viewing.\n\nWhat's next\n-----------\n\n- Learn more about [Terraform with Google Cloud](/docs/terraform).\n- [Automate deployments](/infrastructure-manager/docs/automate-git).\n- [Update a deployment](/infrastructure-manager/docs/update-deployment).\n- [View the state of a deployment](/infrastructure-manager/docs/view-deployments).\n- [Delete a deployment](/infrastructure-manager/docs/delete-deployments)."]]