Cloud/GCP

GCP - CLI

잇(IT) 2022. 6. 28. 11:36
728x90


 


gcloud auth login					
gcloud config list								: 설정확인
gcloud config set project [프로젝트 ID]
gcloud config set compute/region [리전명]		ex) asia-northeast3
gcloud config set compute/zone [존명]			 ex) asia-northeast3-a
gcloud config unset								: 설정 삭제
gcloud config list								: 설정 확인

zone까지 정확하게 연결했다면 gcloud sdk를 이용해서 인스턴스에 접속
ex) gcloud compute ssh web-1



 

728x90