Skip to content

terraform-google-modules/terraform-google-bigquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

908acfb · Feb 15, 2019

History

40 Commits
Oct 18, 2018
Feb 12, 2019
Feb 10, 2019
Dec 28, 2018
Feb 10, 2019
Feb 12, 2019
Dec 28, 2018
Dec 28, 2018
Oct 17, 2018
Jan 17, 2019
Feb 15, 2019
Feb 10, 2019
Jan 16, 2019
Feb 10, 2019

Repository files navigation

terraform-google-bigquery

This module allows you to create opinionated Google Cloud Platform Big Query datasets and tables.

Usage

The root module can be used to provision a dataset and a table with a JSON schema associated with the table. There are multiple examples in the examples folder.

Features

Module provides a parameterized template to deploy a single dataset and a single table. The consumer module can supply any of the listed inputs to customize to their needs.

Inputs

Name Description Type Required Default
dataset_id Unique id for the dataset being provisioned string yes
dataset_name Friendly name for the dataset being provisioned string yes
description Dataset description string yes
location The regional location for the dataset, all Big Query dataset locations are allows string yes US
expiration TTL of tables using the dataset in MS integer yes
project_id Project wheree the dataset and table are created string yes
table_id Unique id for the table being provisioned string yes
time_partitioning Unique id for the table being provisioned string yes
schema_file A JSON schema for the table string yes

Outputs

Name Description
dataset_id Unique id for the dataset being provisioned
dataset_name Friendly name for the dataset being provisioned
dataset_project Project wheree the dataset and table are created
table_id Unique id for the table being provisioned
dataset_labels Key value pairs in a map for dataset labels
table_labels Key value pairs in a map for table labels

Requirements

Terraform plugins

Permissions

In order to execute this module you must have a Service Account with the following roles:

  • roles/bigquery.dataOwner

Script Helper

A helper script for configuring a Service Account is located at (./helpers/setup-sa.sh).

Install

Terraform

Be sure you have the correct Terraform version (0.11.x), you can choose the binary from Terraform releases.

kitchen-terraform

To set this up on your machine, follow the official Kitchen installation instructions.

Running tests

cd /path/to/terraform-google-bigquery The following command will run all tests for the module: make