-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dataplex: Qwik Start - Command Line
41 lines (30 loc) · 1.17 KB
/
Dataplex: Qwik Start - Command Line
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
gcloud auth list
gcloud config list project
gcloud services enable \
dataplex.googleapis.com
export PROJECT_ID=$(gcloud config get-value project)
gcloud config set compute/region $REGION
gcloud dataplex lakes create ecommerce \
--location=$REGION \
--display-name="Ecommerce" \
--description="Ecommerce Domain"
gcloud dataplex zones create orders-curated-zone \
--location=$REGION \
--lake=ecommerce \
--display-name="Orders Curated Zone" \
--resource-location-type=SINGLE_REGION \
--type=CURATED \
--discovery-enabled \
--discovery-schedule="0 * * * *"
bq mk --location=$REGION --dataset orders
gcloud dataplex assets create orders-curated-dataset \
--location=$REGION \
--lake=ecommerce \
--zone=orders-curated-zone \
--display-name="Orders Curated Dataset" \
--resource-type=BIGQUERY_DATASET \
--resource-name=projects/$PROJECT_ID/datasets/orders \
--discovery-enabled
gcloud dataplex assets delete orders-curated-dataset --location=$REGION --zone=orders-curated-zone --lake=ecommerce
gcloud dataplex zones delete orders-curated-zone --location=$REGION --lake=ecommerce
gcloud dataplex lakes delete ecommerce --location=$REGION