-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmain.tf
84 lines (82 loc) · 2.11 KB
/
main.tf
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
terraform {
backend "gcs" {
bucket = "geobeam-tfstate"
}
}
provider "google" {
project = "dataflow-geobeam"
region = "us-central1"
}
module "bigquery" {
source = "terraform-google-modules/bigquery/google"
version = "4.3.0"
dataset_id = "examples"
dataset_name = "examples"
description = "geobeam test dataset"
project_id = "dataflow-geobeam"
location = "US"
default_table_expiration_ms = null
delete_contents_on_destroy = false
tables = [
{
table_id = "parcel"
schema = "geobeam/examples/parcel_schema.json"
time_partitioning = null
clustering = ["geom"]
expiration_time = null
labels = null
},
{
table_id = "dem"
schema = "geobeam/examples/dem_schema.json"
time_partitioning = null
clustering = ["geom"]
expiration_time = null
labels = null
},
{
table_id = "soilgrid"
schema = "geobeam/examples/soilgrid_schema.json"
time_partitioning = null
clustering = ["geom"]
expiration_time = null
labels = null
},
{
table_id = "FLD_HAZ_AR"
schema = "geobeam/examples/FLD_HAZ_AR_schema.json"
time_partitioning = null
clustering = ["FLD_ZONE", "ZONE_SUBTY"]
expiration_time = null
labels = null
},
{
table_id = "CSLF_Ar"
schema = "geobeam/examples/S_CSLF_Ar_schema.json"
time_partitioning = null
clustering = ["PRE_ZONE", "PRE_ZONEST", "NEW_ZONE", "NEW_ZONEST"]
expiration_time = null
labels = null
}
]
}
data "google_iam_policy" "public_bucket" {
binding {
role = "roles/storage.objectViewer"
members = ["allUsers"]
}
}
resource "google_storage_bucket" "geobeam_public_bucket" {
name = "geobeam"
location = "US"
force_destroy = false
}
resource "google_storage_bucket_iam_policy" "public_rule" {
bucket = google_storage_bucket.geobeam_public_bucket.name
policy_data = data.google_iam_policy.public_bucket.policy_data
}
resource "google_storage_bucket" "pipeline_tmp_bucket" {
name = "geobeam-pipeline-tmp"
location = "US"
force_destroy = false
}