본문 바로가기

플랫폼/Google Cloud

[ Google Cloud ] 구글 클라우드 서비스를 사용 전에 해야할 일

Google Cloud

Before you begin

#Python

#command #사용자변수



0. Login

Google Cloud Platform은 계정이 있어야 사용이 가능합니다.

Google ID 없는 사람, 만드세요! 있는 사람, 로그인 하세요!


1.  Select or Create a GCP project.

구글 클라우드 프로젝트를 생성하거나 선택해주세요.


2. Check your payment information for a project.

프로젝트를 위한 결제 정보를 확인하세요.


3. Enable the API.

API를 사용하도록 설정하세요.


4. Set up authentication.

인증정보를 설정해 주세요.

a. Go to the Create service account key page in the GCP Console.

GO TO THE CREATE SERVICE ACCOUNT KEY PAGE

b. From the Service account drop-down list, select New service account.

c. Enter a name into the Service account name field.

d. Don't select a value from the Role drop-down list. No role is required to access this service.

e. Click Create. A note appears, warning that this service account has no role.

f. Click Create without role. A JSON file that contains your key downloads to your computer.


서비스 계정을 선택한 뒤 키 유형을 JSON으로 하고 생성하면 됩니다.

생성된 키를 local에 저장하세요.


5. Install and initialize the Cloud SDK.

Cloud SDK를 설치하고 초기화해 주세요.


6. Provide authentication credentials to your application code by running the following command. Replace [PATH] with the location of the JSON file that contains your credentials.

다음 명령어를 이용하여 응용 프로그램 코드에 인증 증명을 설정하세요. [PATH]에는 JSON 파일의 경로를 적으면 됩니다.

gcloud auth activate-service-account --key-file=[PATH]





#2018년06월26일