프로젝트 및 개발 환경 설정

Vertex AI를 시작하기 위해 이 페이지에서는 Google Cloud 프로젝트를 만들고 Vertex AI API를 사용 설정하는 방법을 안내합니다. 이러한 작업을 수행할 권한이 없는 경우 관리자에게 프로젝트를 설정하고 Vertex AI를 사용 설정해 달라고 요청합니다. 또한 이 페이지에서는 로컬 개발 환경에서 Google Cloud CLI를 설정하는 방법도 설명합니다.

프로젝트 설정

프로젝트를 설정하려면 다음 단계를 따르세요.

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. Enable the Vertex AI API.

    Enable the API

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  6. Make sure that billing is enabled for your Google Cloud project.

  7. Enable the Vertex AI API.

    Enable the API

인증 설정

    Select the tabs for how you plan to access the API:

    Console

    When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.

    gcloud

  1. Install the Google Cloud CLI.
  2. To initialize the gcloud CLI, run the following command:

    gcloud init
  3. Update and install gcloud components:

    gcloud components update
    gcloud components install beta
  4. 서비스 계정 가장 기능을 사용하여 사용자 인증 정보 대신 Google API에 인증하도록 gcloud CLI를 설정하려면 다음 명령어를 실행합니다.

    gcloud config set auth/impersonate_service_account SERVICE_ACCT_EMAIL

    자세한 내용은 서비스 계정 가장을 참조하세요.

    클라이언트 라이브러리

    로컬 개발 환경에서 클라이언트 라이브러리를 사용하려면 gcloud CLI를 설치 및 초기화한 다음 사용자 인증 정보로 애플리케이션 기본 사용자 인증 정보를 설정하세요.

    1. Install the Google Cloud CLI.
    2. To initialize the gcloud CLI, run the following command:

      gcloud init
    3. Update and install gcloud components:

      gcloud components update
      gcloud components install beta
    4. If you're using a local shell, then create local authentication credentials for your user account:

      gcloud auth application-default login

      You don't need to do this if you're using Cloud Shell.

    자세한 내용은 Google Cloud 인증 문서의 로컬 개발 환경의 ADC 설정을 참조하세요.

    서비스 계정 가장 기능을 사용하여 사용자 인증 정보 대신 Google API에 인증하도록 로컬 ADC 파일을 설정하려면 다음 명령어를 실행합니다.

    gcloud auth application-default login --impersonate-service-account=SERVICE_ACCT_EMAIL

    자세한 내용은 서비스 계정 가장을 참조하세요.

    REST

    로컬 개발 환경에서 REST API를 사용하려면 gcloud CLI에 제공한 사용자 인증 정보를 사용합니다.

    1. Install the Google Cloud CLI.
    2. To initialize the gcloud CLI, run the following command:

      gcloud init
    3. Update and install gcloud components:

      gcloud components update
      gcloud components install beta

    자세한 내용은 Google Cloud 인증 문서의 REST 사용을 위한 인증을 참조하세요.

    서비스 계정 가장을 사용하여 REST API 요청의 액세스 토큰을 생성할 수 있습니다. 자세한 내용은 가장 서비스 계정을 참조하세요.

    프로덕션 환경의 인증 설정에 대한 자세한 내용은 Google Cloud 인증 문서의 Set up Application Default Credentials for code running on Google Cloud를 참조하세요.

관리자에게 Vertex AI 프로젝트 설정 요청

이 섹션에서는 관리자가 Vertex AI를 사용하는 데 필요한 역할을 부여하는 방법을 설명합니다.

  1. 프로젝트를 식별할 수 있는 의미 있는 프로젝트 이름과 프로젝트 ID를 결정합니다. 조직에 속해 있거나 여러 프로젝트를 만들려는 경우 어떤 이름 지정 규칙과 폴더 계층 구조를 따르거나 따를 수 있는지 고려하여 프로젝트 구성을 명확히 하세요.
  2. 필요한 역할:
    1. 대부분의 Vertex AI 기능에 대한 액세스 권한은 Vertex AI 사용자 (roles/aiplatform.user) IAM 역할이 부여하며, 대부분의 Vertex AI 사용자에게 충분합니다. Vertex AI 리소스를 완전히 제어하려면 Vertex AI 관리자 (roles/aiplatform.admin) 역할을 요청할 수 있습니다. 이러한 역할과 다른 Vertex AI 역할 간의 차이점을 살펴보려면 IAM으로 Vertex AI 액세스 제어를 참조하세요.
    2. Google Cloud에서 Vertex AI Workbench 인스턴스도 사용하려는 경우 관리자에게 프로젝트에 대한 Notebooks 관리자 (roles/notebooks.admin) IAM 역할과 프로젝트 또는 Compute Engine 기본 서비스 계정에 대한 서비스 계정 사용자 (roles/iam.serviceAccountUser) IAM 역할을 부여해 달라고 요청하세요.
    3. 또한 필요한 API를 사용 설정하려면 서비스 사용량 관리자 (roles/serviceusage.serviceUsageAdmin) IAM 역할이 필요하거나 관리자가 처음 몇 단계를 수행하여 사용자에 대해 API를 활성화해야 합니다.
  3. 관리자에게 Vertex AI API를 사용 설정해 달라고 요청하세요. 서비스 사용량 관리자 (roles/serviceusage.serviceUsageAdmin) IAM 역할을 부여받은 경우 이 작업을 직접 수행할 수 있습니다.

다음 단계