
Cloud Shell 자체 사양이 높지 않다.
SDK(Software Development Kit, Tool Kit)는 소프트 웨어 개발에 필요한 도구와 라이브러리를 모아놓은 패키지다.
클라우드 쉘은 간단한 관리 작업에 적합하지만, 복잡한 처리가 필요할 경우 다른 인프라(VM 등)를 사용하는 것이 좋다.
GCP 서비스
Pub/Sub: Google Cloud의 메시징 서비스로, 비동기적으로 메시지를 전송하고 처리하는 알림 서비스
Cloud Spanner: 글로벌 분산형 데이터베이스로, 높은 가용성과 일관성을 제공하며 관계형 데이터 모델을 지원
Cloud Bigtable: 대규모 비관계형 데이터 저장소로, 높은 읽기/쓰기 성능을 제공하며 시계열 데이터 및 IoT 데이터 처리에 유용
Cloud Datastore: 비관계형 NoSQL 데이터베이스로, 애플리케이션 데이터의 저장 및 쿼리를 쉽게 수행할 수 있도록 지원
https://cloud.google.com/sdk/docs/install-sdk?hl=ko
도움말에 안내된 내용에 따라 사용하는 O/S에 맞는 설치 방법으로 Google Cloud CLI 설치한다.
파워 쉘 설치 방법도 있지만, 잘 안 되는 경우가 있어
설치 프로그램을 다운해 설치하는 것을 권장한다.






Start Google Cloud SDK Shell 체크 시 해당 화면이 나온다.
로그인을 원하면 y, 원하지 않으면 n로 입력한다.

cmd 창에서 클라우드 설치를 확인한다.
gcloud -v

gcloud CLI 사용 인증
https://cloud.google.com/docs/authentication/gcloud?hl=ko
gcloud GROUP | COMMAND [--account=ACCOUNT] [--billing-project=BILLING_PROJECT] [--configuration=CONFIGURATION] [--flags-file=YAML_FILE] [--flatten=[KEY,…]] [--format=FORMAT] [--help] [--project=PROJECT_ID] [--quiet, -q] [--verbosity=VERBOSITY; default="warning"] [--version, -v] [-h] [--access-token-file=ACCESS_TOKEN_FILE] [--impersonate-service-account=SERVICE_ACCOUNT_EMAILS] [--log-http] [--trace-token=TRACE_TOKEN] [--no-user-output-enabled]
CMD 에서 진행
로그인 필요시 y 작성
gcloud init

구글 홈페이지가 노출되며, 해당 창에서 로그인하면 된다.
gcloud auth login


gcloud auth list
gcloud config list
gcloud projects list
gcloud config list project
gcloud config get-value project
gcloud compute project-info describe --project $(gcloud config get-value project)
gcloud config set compute/region [region]
gcloud config set compute/zone [zone]
gcloud config set account ‘ACCOUNT’
gcloud config get-value compute/region
gcloud config list --all
gcloud components list
gcloud logging logs list
gcloud logging logs list --filter="compute"
gcloud logging read "resource.type=gce_instance" --limit 5
gcloud logging read "resource.type=gce_instance AND labels.instance_name='gcelab2'" --limit 5
https://cloud.google.com/compute/docs/gcloud-compute/common-commands?hl=ko
gcloud compute instances create VM_NAME \
[--image IMAGE | --image-family IMAGE_FAMILY] \
--image-project IMAGE_PROJECT
gcloud compute를 사용하면 Compute Engine API보다 간단한 형식으로 Compute Engine 리소스를 관리할 수 있습니다.
instances create는 새 인스턴스를 만듭니다.
export ZONE=$(gcloud config get-value compute/zone)
cloud compute instances create gcelab2 --machine-type e2-medium --zone $ZONE
gcelab2는 VM의 이름입니다.
--machine-type 플래그는 머신 유형을 e2-medium으로 지정합니다.
--zone 플래그는 VM이 생성되는 위치를 지정합니다.
--zone 플래그를 생략하면 gcloud 도구가 기본 속성을 기준으로 개발자가 원하는 영역을 추론할 수 있습니다. machine type 및 image와 같은 기타 필수 인스턴스 설정은 create 명령어에서 지정되지 않은 경우 기본값으로 설정됩니다.
gcloud compute instances list
gcloud compute instances list --filter="name=('gcelab2')"
gcloud compute firewall-rules list
gcloud compute firewall-rules list --filter="network='default'"
gcloud compute firewall-rules list --filter=ALLOW:'80'
gcloud compute firewall-rules create default-allow-http --direction=INGRESS --priority=1000 --network=default --action=ALLOW --rules=tcp:80 --source-ranges=0.0.0.0/0 --target-tags=http-server
curl http://$(gcloud compute instances list --filter=name:gcelab2 --format='value(EXTERNAL_IP)')
gcloud compute ssh gcelab2 --zone $ZONE
gcloud compute instances add-tags gcelab2 --tags http-server,https-server
cloudskillsboost는 자습이 가능한 서비스다.
실습을 할 수 있으며, 기본은 무료로 특정 기술에 따라 유료다.
https://support.google.com/qwiklabs/answer/9210144?hl=ko
https://www.cloudskillsboost.google/focuses/563?locale=ko&parent=catalog