본문 바로가기

구글 클라우드 교육/TIL

[TIL] VM 만들기

GSP001: Google Cloud Self-Paced Labs

 

주의사항: 복붙 대신 직접 써서 VM을 만들 것.

 

이번 퀘스트에서 할 일:

1) 클라우드 콘솔을 이용해 VM 만들기

2) gcloud 커맨드 라인을 이용해 VM 만들기

3) 웹서버 배치 및 VM에 연결하기

 

Cloud Shell:

- A virtual machine loaded with development tools.

- Offers persistent 5G home directory and runs on the Google Cloud

- Provides command-line access to Google Cloud resources

 

gcloud:

- the command-line tool for Google Cloud.

- comes pre-installed on Cloud Shell and supports tab-completion

-> 이걸 통해서 계정을 활성화 시킴

-> gcloud auth list (copy link)

gcloud CLI 개요: https://cloud.google.com/sdk/gcloud

 

gcloud CLI 개요  |  Google Cloud CLI 문서

의견 보내기 gcloud CLI 개요 이 페이지에는 Google Cloud CLI와 일반적인 명령어 패턴 및 특징의 개요가 나와 있습니다. gcloud CLI란 무엇인가요? Google Cloud CLI는 Google Cloud 리소스를 만들고 관리하는 도구

cloud.google.com

 

Understanding Regions and Zones

Region: specific geographical location where you can run resources. Zones make up regions (referred to as 'zonal resources'. To attach a persistent disk to a virtual machine instance, both resources must be in the same zone. IP도 마찬가지. 

 

TASK 1: Create a new instance from the Cloud Console

> Cloud Console 대신 gcloud를 통해서도 VM instance를 만들 수 있다.

 

TASK 2: Install an NGINX web server

TASK 3: Create a new instance with gcloud