forked from GoogleCloudPlatform/public-datasets-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.yaml
47 lines (42 loc) · 1.96 KB
/
pipeline.yaml
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
42
43
44
45
46
47
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
resources:
- type: bigquery_table
table_id: release_notes
description: "This table contains release notes for the majority of generally available Google Cloud products found on cloud.google.com. You can use this BigQuery public dataset to consume release notes programmatically across all products. HTML versions of release notes are available within each product's documentation and also in a filterable format at https://console.cloud.google.com/release-notes."
dag:
airflow_version: 1
initialize:
dag_id: release_notes
default_args:
owner: "Google"
depends_on_past: False
start_date: '2021-08-05'
max_active_runs: 1
schedule_interval: "0 5 * * *" # run daily at 5am
catchup: False
default_view: graph
tasks:
- operator: "BigQueryToBigQueryOperator"
description: "Task to run a BQ to BQ operator"
args:
task_id: "google_cloud_release_notes"
source_project_dataset_tables: ["{{ var.json.google_cloud_release_notes.release_notes.source_project_dataset_table }}"]
destination_project_dataset_table: "{{ var.json.google_cloud_release_notes.release_notes.destination_project_dataset_table }}"
impersonation_chain: "{{ var.json.google_cloud_release_notes.service_account }}"
write_disposition: "WRITE_TRUNCATE"
gcp_conn_id: "google_cloud_release_notes_conn"
graph_paths:
- "google_cloud_release_notes"