Cloud ์ ์ ์ธ๋ฒคํ ๋ฆฌ๋ ์ต๋ 35์ผ๊น์ง์ ์์ฑ, ์ ๋ฐ์ดํธ, ์ญ์ ๊ธฐ๋ก์ด ํฌํจ๋ Google Cloud ์ ์ ๋ฉํ๋ฐ์ดํฐ๋ฅผ ๋ณด๊ณ ๊ฒ์ํ๊ณ ๋ด๋ณด๋ด๊ณ ๋ชจ๋ํฐ๋งํ๊ณ ๋ถ์ํ ์ ์๋ ์ ์ญ ๋ฉํ๋ฐ์ดํฐ ์ธ๋ฒคํ ๋ฆฌ ์๋น์ค์ ๋๋ค. ์ง๋ 35์ผ ๋์ ๋ณ๊ฒฝ๋์ง ์์ ์ ์ ์ ์ต์ ์ํ๋ฅผ ๋ณด๊ณ ํฉ๋๋ค.
์ ์ ๋ฉํ๋ฐ์ดํฐ๋ ๋ค์ ์์น์์ ์ ๊ณต๋ ์ ์์ต๋๋ค.
Compute Engine VM ์ธ์คํด์ค, Cloud Storage ๋ฒํท, App Engine ์ธ์คํด์ค์ ๊ฐ์ Google Cloud ๋ฆฌ์์ค
IAM ์ ์ฑ , ์กฐ์ง ์ ์ฑ , Access Context Manager ์ ์ฑ ๊ณผ ๊ฐ์ด Google Cloud ๋ฆฌ์์ค์ ์ค์ ๋ ์ ์ฑ
OS ์ธ๋ฒคํ ๋ฆฌ ๊ด๋ฆฌ์ ๋ฐํ์ ์ ๋ณด
์ ์ ์ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
ํน์ ํ๋ก์ ํธ, ํด๋ ๋๋ ์กฐ์ง์ ์ ์ ๊ณผ ๊ด๊ณ๋ฅผ ๋์ดํ๊ณ ์ต๋ 35์ผ ์ ์ ์ ์ ๊ธฐ๋ก์ ํ์ธํ ์ ์์ต๋๋ค.
์ปค์คํ ์ฟผ๋ฆฌ ์ธ์ด๋ฅผ ์ฌ์ฉํ์ฌ ๋ฆฌ์์ค์ IAM ํ์ฉ ์ ์ฑ ์ ๊ฒ์ํ๊ฑฐ๋ BigQuery SQL๋ก ์ ์ ์ ์ฟผ๋ฆฌํฉ๋๋ค.
์ ์ ๋ฉํ๋ฐ์ดํฐ๋ฅผ BigQuery ๋๋ Cloud Storage๋ก ๋ด๋ณด๋ ๋๋ค.
๋ฆฌ์์ค๋ฅผ ๋ค๋ฅธ ํ๋ก์ ํธ๋ก ์ด๋ํ ๊ฒฝ์ฐ ์ด๋ค ์ผ์ด ๋ฐ์ํ๋์ง ๋ถ์ํฉ๋๋ค.
๋ฆฌ์์ค์ ๋ํ IAM๊ณผ ์กฐ์ง ์ ์ฑ ์ ๋ถ์ํ๊ณ ๋ฆฌ์์ค์ ๋ํ ์ ํจํ IAM ์ ์ฑ ์ ํ์ธํ์ฌ ๋๊ฐ ์ด๋ค ๋ฆฌ์์ค์ ์ก์ธ์คํ ์ ์๋์ง ํ์ธํฉ๋๋ค.
ํผ๋๋ฅผ ์ค์ ํ๊ณ ๊ตฌ๋ ํ์ฌ ์ ์ ๋ณ๊ฒฝ์ฌํญ์ ๋ชจ๋ํฐ๋งํฉ๋๋ค.
๋ณด์ ์ํฉ์ด ๊ฐ์ ๋๋ ๋ฐ ๋์์ด ๋๋๋ก ์ ์ ์์ ํต๊ณ๋ฅผ ์์ฑํฉ๋๋ค.
์ ์ ์ ํ, ์ ์ ์ด๋ฆ, ์ฝํ ์ธ ์ ํ
Cloud ์ ์ ์ธ๋ฒคํ ๋ฆฌ๋ ์ ์ ๊ณผ ์ํธ์์ฉํ๋ ์ฌ๋ฌ ๊ฐ์ง ๋ฐฉ๋ฒ์ ์ ๊ณตํฉ๋๋ค. ์ฌ์ฉํ๋ ๋ฉ์๋์ ์ํ๋ ์๋ต ์ธ๋ถ์ ๋ณด์ ๋ฐ๋ผ ์์ฒญ์ ์ ์ ์ ํ, ์ ์ ์ด๋ฆ, ์ฝํ ์ธ ์ ํ์ ์ง์ ํด์ผ ํ ์ ์์ต๋๋ค.
์ ์ ์ ํ
์ผ๋ถ Cloud ์ ์ ์ธ๋ฒคํ ๋ฆฌ ๋ฉ์๋๋ ์ ์ ์ ํ์ ๊ธฐ์ค์ผ๋ก ๊ฒฐ๊ณผ๋ฅผ ๋ฐํํฉ๋๋ค. ์ ์ ์ ํ์๋ Google Cloud ๋ฆฌ์์ค, ์ ์ฑ , OS ์ธ๋ฒคํ ๋ฆฌ ๋ฐํ์ ์ ๋ณด, ๊ด๊ณ๊ฐ ํฌํจ๋ฉ๋๋ค. ์ฌ์ฉ ๊ฐ๋ฅํ ์ ์ ์ ํ๊ณผ ์ด๋ฅผ ์ง์ํ๋ Cloud ์ ์ ์ธ๋ฒคํ ๋ฆฌ ๋ฉ์๋๋ ์ ์ ์ ํ์ ์์ธํ ์ค๋ช ๋์ด ์์ต๋๋ค.
์ ์ ์ด๋ฆ
์ผ๋ถ Cloud ์ ์ ์ธ๋ฒคํ ๋ฆฌ ๋ฉ์๋๋ ์ ์ ์ด๋ฆ์ ๊ธฐ์ค์ผ๋ก ๊ฒฐ๊ณผ๋ฅผ ๋ฐํํฉ๋๋ค. ์ ์ ์ด๋ฆ์ ์ง์ ํ ๋๋ ์ ์ฒด ๋ฆฌ์์ค ์ด๋ฆ์ ์ฌ์ฉํด์ผ ํฉ๋๋ค. ์ ์ฒด ๋ฆฌ์์ค ์ด๋ฆ ๋ชฉ๋ก์ ์ ์ ์ด๋ฆ์ ์ฐธ์กฐํ์ธ์.
์ฝํ ์ธ ์ ํ
๋ฉํ๋ฐ์ดํฐ ์ฝํ ์ธ ์ ํ์ ์ง์ ํ์ฌ ๋ฆฌ์์ค์ ๋ํ ์ถ๊ฐ ๋ฉํ๋ฐ์ดํฐ๋ฅผ ์์ฒญํ ์ ์์ต๋๋ค. ์ฝํ ์ธ ์ ํ์ ์ง์ ํ์ง ์์ผ๋ฉด ์ ์ ์ด๋ฆ, ๋ง์ง๋ง ์ ๋ฐ์ดํธ ์๊ฐ, ์ํด ์๋ ํ๋ก์ ํธ, ํด๋, ์กฐ์ง๊ณผ ๊ฐ์ ์ ๋ณด๊ฐ ํฌํจ๋ ๊ธฐ๋ณธ ์๋ต๋ง ๋ฐํ๋ฉ๋๋ค.
์ฝํ ์ธ ์ ํ ์ด๋ฆ์ Cloud ์ ์ ์ธ๋ฒคํ ๋ฆฌ์ ์ํธ์์ฉํ๋ ๋ฐฉ์์ ๋ฐ๋ผ ๋ค๋ฆ ๋๋ค. RPC ์ด๋ฆ๊ณผ REST API ์ด๋ฆ์ ๊ฐ์ต๋๋ค. ๊ทธ๋ฌ๋ gcloud CLI ์ฝํ ์ธ ์ ํ ์ด๋ฆ์ ๋ค๋ฅธ ํจํด์ ๋ฐ๋ฆ ๋๋ค. ์ผ๊ด์ฑ๊ณผ ์ค๋ช ์ฉ์ด์ฑ์ ์ํด ์ด ๋ฌธ์์ ๋๋จธ์ง ๋ถ๋ถ์์๋ ์ฝํ ์ธ ์ ํ์ RPC ์ด๋ฆ๊ณผ REST ์ด๋ฆ์ผ๋ก ์ฐธ์กฐํฉ๋๋ค.
๋ค์ ํ์์๋ ์ฝํ ์ธ ์ ํ๊ณผ ์ค๋ช ์ ์์ธํ ์ค๋ช ํฉ๋๋ค.
์ฝํ ์ธ ์ ํ | ์ค๋ช | |
---|---|---|
RPC ๋ฐ REST ์ด๋ฆ | gcloud CLI ์ด๋ฆ | |
ACCESS_POLICY |
access-policy |
์ ์ ์ ์ค์ ๋ Access Context Manager ์ ์ฑ ์ ๋๋ค. |
IAM_POLICY |
iam-policy |
๋ฆฌ์์ค์ ๋ฐ์ธ๋ฉ๋๋ IAM ์ ์ฑ ๋ฉํ๋ฐ์ดํฐ์ ๋๋ค. |
ORG_POLICY |
org-policy |
์ ์
์ ์ค์ ๋ ์กฐ์ง ์ ์ฑ
๋ฉํ๋ฐ์ดํฐ์
๋๋ค. ์ด ์ฝํ
์ธ ์ ํ์ ๊ธฐ์กด ์กฐ์ง ์ ์ฑ
v1์ ์ถ๋ ฅํฉ๋๋ค. ์กฐ์ง ์ ์ฑ
v2์ ๊ฒฝ์ฐ resource ์ฝํ
์ธ ์ ํ๊ณผ orgpolicy.googleapis.com/Policy ๋ฆฌ์์ค ์ ํ์ ์ฌ์ฉํด ๋ณด์ธ์.
|
OS_INVENTORY |
os-inventory |
๋ฐํ์ OS ์ธ๋ฒคํ ๋ฆฌ ์ ๋ณด์ ๋๋ค. OS ์ธ๋ฒคํ ๋ฆฌ๋ฅผ ์ฌ์ฉ ์ค์ ํ๋ ค๋ฉด VM Manager ์ค์ ์ ๊ด๋ จ ๋จ๊ณ๋ฅผ ์๋ฃํฉ๋๋ค. |
RELATIONSHIP |
relationship |
Security Command Center ํ๋ฆฌ๋ฏธ์ ๋ฐ ์ํฐํ๋ผ์ด์ฆ ๋ฑ๊ธ ๊ตฌ๋ ์๋ง ์ฌ์ฉํ ์ ์์ต๋๋ค. ๋ง์ Google Cloud ์ ์ ์ ๊ด๊ณ๋ฅผ ํตํด ์๋ก ์ฐ๊ฒฐ๋ฉ๋๋ค. ์๋ฅผ ๋ค์ด Compute ์ธ์คํด์ค ๊ทธ๋ฃน์ ์ปดํจํ ์ธ์คํด์ค๋ฅผ ํฌํจํ๊ฑฐ๋ GKE ํด๋ฌ์คํฐ๋ ๋ ธ๋๋ฅผ ํฌํจํ ์ ์์ต๋๋ค. ๊ด๊ณ ๋ฐ์ดํฐ๋ 2022๋ 5์ 30์ผ๋ถํฐ ์ ๊ณต๋ฉ๋๋ค. ๊ด๊ณ๋ ์์ค ์ ์ ์ ๋ฐ์ดํธ์ ๋ค๋ฅธ ์๊ฐ์ ์ถ๋ก ๋ ์ ์์ผ๋ฏ๋ก ์์ฒด ์ ๋ฐ์ดํธ ํ์์คํฌํ๋ฅผ ๊ฐ์ง ์ ์์ต๋๋ค. ์ง์๋๋ ๊ด๊ณ ๋ชฉ๋ก์ ๊ด๊ณ ์ ํ์ ์ฐธ์กฐํ์ธ์. |
RESOURCE |
resource |
๋ฆฌ์์ค ๋ฉํ๋ฐ์ดํฐ์ ๋๋ค. |
์ฝํ ์ธ ์ ํ์ ๋ฐ๋ผ ์๋ต์ด ๋ณ๊ฒฝ๋๋ ๋ฐฉ์
๋ค์ ์์์์๋ Cloud ์ ์ ์ธ๋ฒคํ ๋ฆฌ๋ฅผ ํตํด ํ๋ก์ ํธ์ ๋ค์ํ ์ฝํ ์ธ ์ ํ์ผ๋ก VM ์ธ์คํด์ค๋ฅผ ๋์ดํ ๋ ์๋ต์ด ์ด๋ป๊ฒ ๋ณ๊ฒฝ๋๋์ง ๋ณด์ฌ์ค๋๋ค.
์ฝํ ์ธ ์ ํ ์์
VM ์ธ์คํด์ค๋ฅผ ๋์ดํ ๋ ์ฝํ ์ธ ์ ํ์ ์ง์ ํ์ง ์์ผ๋ฉด ์ธ์คํด์ค ์ด๋ฆ, ๋ง์ง๋ง ์ ๋ฐ์ดํธ ์๊ฐ, ์ธ์คํด์ค๊ฐ ์ํ ํ๋ก์ ํธ, ํด๋, ์กฐ์ง๋ง ์์ ๋ฉ๋๋ค.
์๋ต ์์ ํผ์น๊ธฐ
--- ancestors: - projects/PROJECT_NUMBER - folders/FOLDER_NUMBER - organizations/ORGANIZATION_ID assetType: compute.googleapis.com/Instance name: //compute.googleapis.com/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE_NAME updateTime: '2023-11-15T12:28:30.087825Z'
IAM_POLICY ์ฝํ ์ธ ์ ํ
IAM_POLICY
์ฝํ
์ธ ์ ํ์ ์ง์ ํ๋ฉด VM์ ์๋ IAM ๋ฐ์ธ๋ฉ๋ ์์ ๋ฉ๋๋ค(์๋ ๊ฒฝ์ฐ).
์๋ต ์์ ํผ์น๊ธฐ
--- ancestors: - projects/PROJECT_NUMBER - folders/FOLDER_NUMBER - organizations/ORGANIZATION_ID assetType: compute.googleapis.com/Instance iamPolicy: bindings: - members: - user:USER_EMAIL_ADDRESS role: roles/compute.securityAdmin etag: ETAG name: //compute.googleapis.com/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE_NAME updateTime: '2023-12-19T23:35:42.673842Z'
RESOURCE ์ฝํ ์ธ ์ ํ
RESOURCE
์ฝํ
์ธ ์ ํ์ ์ง์ ํ๋ฉด VM๊ณผ ์ฐ๊ฒฐ๋ ๋ชจ๋ ๋ฉํ๋ฐ์ดํฐ๋ ์์ ๋ฉ๋๋ค.
์๋ต ์์ ํผ์น๊ธฐ
--- ancestors: - projects/PROJECT_NUMBER - folders/FOLDER_NUMBER - organizations/ORGANIZATION_ID assetType: compute.googleapis.com/Instance name: //compute.googleapis.com/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE_NAME resource: data: allocationAffinity: consumeAllocationType: ANY_ALLOCATION canIpForward: false confidentialInstanceConfig: enableConfidentialCompute: true cpuPlatform: AMD Rome creationTimestamp: '2023-11-14T14:35:37.059-08:00' deletionProtection: false description: '' disks: - architecture: X86_64 autoDelete: true boot: true deviceName: INSTANCE_NAME diskSizeGb: '10' guestOsFeatures: - type: VIRTIO_SCSI_MULTIQUEUE - type: SEV_CAPABLE - type: SEV_SNP_CAPABLE - type: SEV_LIVE_MIGRATABLE - type: UEFI_COMPATIBLE - type: GVNIC index: 0 interface: NVME licenses: - https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/licenses/ubuntu-2004-lts mode: READ_WRITE shieldedInstanceInitialState: dbx: - content: DATA fileType: BIN dbxs: - content: DATA fileType: BIN source: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/disks/INSTANCE_NAME type: PERSISTENT displayDevice: enableDisplay: false fingerprint: FINGERPRINT id: 'ID' keyRevocationActionType: NONE_ON_KEY_REVOCATION labelFingerprint: LABEL_FINGERPRINT lastStartTimestamp: '2023-11-15T04:28:30.005-08:00' machineType: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/machineTypes/n2d-standard-2 name: INSTANCE_NAME networkInterfaces: - accessConfigs: - name: External NAT natIP: 34.27.105.222 networkTier: PREMIUM type: ONE_TO_ONE_NAT fingerprint: jKU51FdTluk= name: nic0 network: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/networks/default networkIP: 10.128.15.212 nicType: GVNIC stackType: IPV4_ONLY subnetwork: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/subnetworks/default reservationAffinity: consumeReservationType: ANY_ALLOCATION resourceStatus: {} scheduling: automaticRestart: true onHostMaintenance: TERMINATE preemptible: false provisioningModel: STANDARD selfLink: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE_NAME serviceAccounts: - email: PROJECT_NUMBER-compute@developer.gserviceaccount.com scopes: - https://www.googleapis.com/auth/devstorage.read_only - https://www.googleapis.com/auth/logging.write - https://www.googleapis.com/auth/monitoring.write - https://www.googleapis.com/auth/servicecontrol - https://www.googleapis.com/auth/service.management.readonly - https://www.googleapis.com/auth/trace.append shieldedInstanceConfig: enableIntegrityMonitoring: true enableSecureBoot: false enableVtpm: true shieldedInstanceIntegrityPolicy: updateAutoLearnPolicy: true startRestricted: false status: RUNNING tags: fingerprint: FINGERPRINT zone: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE discoveryDocumentUri: https://www.googleapis.com/discovery/v1/apis/compute/v1/rest discoveryName: Instance location: ZONE parent: //cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER version: v1 updateTime: '2023-11-15T12:28:30.087825Z'
RELATIONSHIP ์ฝํ ์ธ ์ ํ
Security Command Center ํ๋ฆฌ๋ฏธ์ ๋ฐ ์ํฐํ๋ผ์ด์ฆ ๋ฑ๊ธ ๊ตฌ๋ ์๋ง ์ฌ์ฉํ ์ ์์ต๋๋ค.
RELATIONSHIP
์ฝํ
์ธ ์ ํ์ ์ง์ ํ๋ฉด VM ์ธ์คํด์ค ๊ด๋ จ ์ ์
๊ณผ ์ฐ๊ฒฐ๋ ๋ฉํ๋ฐ์ดํฐ๋ ์์ ๋ฉ๋๋ค.
์๋ต ์์ ํผ์น๊ธฐ
--- ancestors: - projects/PROJECT_NUMBER - folders/FOLDER_NUMBER - organizations/ORGANIZATION_ID assetType: compute.googleapis.com/Instance name: //compute.googleapis.com/projects/PROJECT_ID/zones/ZONE/instances/INSTANCE_NAME relatedAsset: ancestors: - projects/PROJECT_NUMBER - folders/FOLDER_NUMBER - organizations/ORGANIZATION_ID asset: //compute.googleapis.com/projects/PROJECT_ID/zones/ZONE/disks/INSTANCE_NAME assetType: compute.googleapis.com/Disk relationshipType: COMPUTE_INSTANCE_USE_DISK updateTime: '2023-12-19T23:35:42.673842Z'
RELATIONSHIP
์ฝํ
์ธ ์ ํ์ ์ฌ์ฉํ ๋๋ ๋ชจ๋ ๊ด๊ณ๋ฅผ ์์ฒญํ๋ ๋์ ํน์ ๊ด๊ณ ์ ํ์ ์์ฒญํ ์ ์์ต๋๋ค.