콘솔을 사용하여 워크플로 만들기 Google Cloud
이 빠른 시작에서는 콘솔을 사용하여 첫 번째 워크플로 를 만들고 배포, 실행하는 방법을 보여줍니다. Google Cloud 샘플 워크플로는 요청을 공개 API에 전송한 후 API 응답을 반환합니다.
콘솔에서 이 태스크에 대한 단계별 안내를 직접 수행하려면 Google Cloud 둘러보기를 클릭합니다.
시작하기 전에
조직에서 정의한 보안 제약조건으로 인해 다음 단계를 완료하지 못할 수 있습니다. 문제 해결 정보는 제한된 환경에서 애플리케이션 개발 Google Cloud 을 참조하세요.
- 계정에 로그인합니다. Google Cloud 를 처음 사용하는 경우 Google Cloud, 계정을 만들고 Google 제품의 실제 성능을 평가해 보세요. 신규 고객에게는 워크로드를 실행, 테스트, 배포하는 데 사용할 수 있는 $300의 무료 크레딧이 제공됩니다.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Workflows API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles.-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Workflows API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission. Learn how to grant roles.- 인증을 설정합니다.
-
서비스 계정 만들기 IAM 역할
(
roles/iam.serviceAccountCreator) 및 프로젝트 IAM 관리자 역할 (roles/resourcemanager.projectIamAdmin)이 있는지 확인합니다. 역할을 부여하는 방법을 알아보세요. -
콘솔에서 서비스 계정 만들기 페이지로 이동합니다. Google Cloud
서비스 계정 만들기로 이동 - 프로젝트를 선택합니다.
-
서비스 계정 이름 필드에 이름을 입력합니다. 콘솔은 이 이름을 기반으로 서비스 계정 ID 필드를 채웁니다. Google Cloud
서비스 계정 설명 필드에 설명을 입력합니다. 예를 들면
Service account for quickstart입니다. - 만들고 계속하기 를 클릭합니다.
-
서비스 계정에 Logging > 로그 작성자 역할을 부여합니다.
역할을 부여하려면 역할 선택 목록을 찾은 후 Logging > 로그 작성자를 선택합니다.
- 계속 을 클릭합니다.
-
완료 를 클릭하여 서비스 계정 만들기를 마칩니다.
-
서비스 계정 만들기 IAM 역할
(
서비스 계정 역할 및 권한에 대한 자세한 내용은 리소스에 액세스할 수 있도록 워크플로 권한 부여 Google Cloud 를 참조하세요.
필요한 역할
빠른 시작을 완료하는 데 필요한 권한을 얻으려면 관리자에게 프로젝트에 대한 다음 IAM 역할을 부여해 달라고 요청하세요.
-
서비스 계정 사용자 (
roles/iam.serviceAccountUser) -
Workflows 관리자 (
roles/workflows.admin)
역할 부여에 대한 자세한 내용은 프로젝트, 폴더, 조직에 대한 액세스 관리를 참조하세요.
워크플로 생성 및 배포
콘솔에서 Workflows 페이지로 이동합니다. Google Cloud
워크플로 페이지에서 만들기를 클릭합니다.
새 워크플로의 이름을 입력합니다(예:
myFirstWorkflow).리전으로 us-central1을 선택합니다.
서비스 계정에서 이전에 만든 서비스 계정을 선택합니다.
다음을 선택합니다.
워크플로 편집기에서 다음 워크플로를 복사하여 붙여넣습니다.
YAML
JSON
자체 검색어를 입력하지 않는 한 이 워크플로는 위치를 사용하여 검색어를 구성하며 이는 Wikipedia API로 전달됩니다.Google Cloud 관련 Wikipedia 자료 목록이 반환됩니다.
배포를 선택합니다.
워크플로 실행
워크플로가 성공적으로 배포되면 처음으로 실행할 수 있습니다. 워크플로를 배포하면 워크플로 세부정보 페이지로 이동하게 됩니다.
워크플로 세부정보 페이지에서 실행을 클릭합니다.
워크플로 실행 페이지에서 실행을 클릭합니다.
출력 창에 워크플로 결과가 표시됩니다.
첫 번째 워크플로를 배포하고 실행했습니다.
삭제
이 페이지에서 사용한 리소스 비용이 Google Cloud 계정에 청구되지 않도록 하려면 다음 단계를 수행합니다.
콘솔에서 Workflows 페이지로 이동합니다. Google Cloud
워크플로 목록에서 워크플로를 클릭하여 워크플로 세부정보 페이지로 이동합니다.
삭제를 클릭합니다.
워크플로 이름을 입력한 다음 확인을 클릭합니다.