Slide 9
Slide 9 text
Copyright© MEDLEY, Inc. ALL RIGHTS RESERVED. 9
Terraform Provider
for TROCCO の活⽤
kintone 転送先 Terraform 設定例
input_option_type = "bigquery"
input_option = {
bigquery_input_option = {
bigquery_connection_id = 9999
gcs_uri = "bigquery-to-kintone-sample"
gcs_uri_format = "bucket"
query = <<-EOT
SELECT
a, b, c, d
FROM xxxx
…
EOT
temp_dataset = "temp_dataset_name"
location = "asia-northeast1"
is_standard_sql = true
cleanup_gcs_files = true
file_format = "CSV"
cache = true
bigquery_job_wait_second = 600
columns = [
{
name = "staff_id"
type = "long"
},
{
name = "staff_name"
type = "string"
}, …
output_option_type = "kintone"
output_option = {
kintone_output_option = {
kintone_connection_id = 999
app_id = "999"
guest_space_id = ""
mode = "upsert"
update_key = "id"
ignore_nulls = false
reduce_key = ""
chunk_size = 100
}
}
}
本件では BigQuery を使用
各種転送設定、転送元カラム
やデータ抽出時の SQL を記載
転送元設定
転送先として kintone を指定可能に
2025年からサポートされた UPSERT も指定可能
kintone へのデータ転送処理が Terraform 化できるように
なったことで、kintone 運用側で作成したクエリを連携処理と
セットで Git 管理下に置けるように!
転送先設定