Skip to content

Commit c4a35fa

Browse files
committed
lint
1 parent 7c598d6 commit c4a35fa

6 files changed

Lines changed: 38 additions & 52 deletions

File tree

infra/tf/.terraform.lock.hcl

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/tf/data_exchange.tf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/*import {
2-
id = "projects/${local.project}/locations/${local.location}/dataExchanges/${local.data_exchange_id}"
3-
to = google_bigquery_analytics_hub_data_exchange.default
4-
}
5-
6-
import {
7-
id = "projects/${local.project}/locations/${local.location}/dataExchanges/${local.data_exchange_id}/listings/${local.listing_id}"
8-
to = google_bigquery_analytics_hub_listing.default
9-
}*/
10-
111
resource "google_bigquery_analytics_hub_data_exchange" "default" {
122
data_exchange_id = "httparchive"
133
location = local.location

infra/tf/dataform.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*import {
2-
provider = google-beta
3-
id = "projects/${local.project}/locations/${local.region}/repositories/crawl-data"
4-
to = google_dataform_repository.production
5-
}*/
6-
71
# BigQuery IAM roles for Dataform
82
locals {
93
dataform_service_account_email = "service-226352634162@gcp-sa-dataform.iam.gserviceaccount.com"

infra/tf/functions/main.tf

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
terraform {
2+
required_version = ">= 1.9.7"
3+
4+
required_providers {
5+
google = {
6+
source = "hashicorp/google"
7+
version = ">= 6.13.0"
8+
}
9+
}
10+
}
11+
112
resource "google_project_iam_member" "project" {
213
for_each = toset(["roles/bigquery.jobUser", "roles/dataform.serviceAgent", "roles/run.invoker", "roles/run.jobsExecutorWithOverrides", "roles/datastore.user", "roles/storage.objectUser"])
314

@@ -25,7 +36,3 @@ resource "google_project_iam_member" "bigquery-remote-functions-connector" {
2536
role = "roles/run.invoker"
2637
member = "serviceAccount:${google_bigquery_connection.remote-functions.cloud_resource[0].service_account_id}"
2738
}
28-
29-
data "google_project" "project" {
30-
project_id = var.project
31-
}

infra/tf/functions/variables.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ variable "location" {
1010
type = string
1111
}
1212

13-
variable "region" {
14-
type = string
15-
}
16-
1713
variable "edit_datasets" {
18-
type = list(string)
14+
type = list(string)
1915
default = []
2016
}

infra/tf/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ module "masthead" {
6969

7070
module "functions" {
7171
source = "./functions"
72-
7372
project = local.project
7473
location = local.location
7574
function_identity = local.function_identity

0 commit comments

Comments
 (0)