Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Oct 14, 2024
1 parent d2438c3 commit 71afd41
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ node_modules/

# Terraform
tf/.terraform/
tf/temp
tf/temp
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

"name": "crawl-data",
"dependencies": {
"@dataform/core": "3.0.6"
Expand Down
56 changes: 28 additions & 28 deletions tf/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tf/dataform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ locals {

import {
provider = google-beta
id = "projects/${local.project}/locations/${local.region}/repositories/crawl-data"
to = google_dataform_repository.production
id = "projects/${local.project}/locations/${local.region}/repositories/crawl-data"
to = google_dataform_repository.production
}

resource "google_dataform_repository" "production" {
Expand Down
12 changes: 6 additions & 6 deletions tf/functions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ resource "google_storage_bucket_object" "object" {
# Cloud Function to trigger Dataform workflow
import {
provider = google-beta
id = "projects/${local.project}/locations/${local.region}/functions/dataformTrigger"
to = google_cloudfunctions2_function.dataformTrigger
id = "projects/${local.project}/locations/${local.region}/functions/dataformTrigger"
to = google_cloudfunctions2_function.dataformTrigger
}

resource "google_cloudfunctions2_function" "dataformTrigger" {
Expand All @@ -38,8 +38,8 @@ resource "google_cloudfunctions2_function" "dataformTrigger" {
}
source {
storage_source {
bucket = "gcf-v2-sources-226352634162-us-central1"
object = "dataformTrigger/function-source.zip"
bucket = "gcf-v2-sources-226352634162-us-central1"
object = "dataformTrigger/function-source.zip"
}
}
}
Expand Down Expand Up @@ -116,8 +116,8 @@ EOF

import {
provider = google-beta
id = "projects/${local.project}/locations/us-east4/jobs/bq-poller-cwv-tech-report"
to = google_cloud_scheduler_job.bq-poller-cwv-tech-report
id = "projects/${local.project}/locations/us-east4/jobs/bq-poller-cwv-tech-report"
to = google_cloud_scheduler_job.bq-poller-cwv-tech-report
}

resource "google_cloud_scheduler_job" "bq-poller-cwv-tech-report" {
Expand Down
8 changes: 4 additions & 4 deletions tf/locals.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
project = "httparchive"
project_number = "226352634162"
region = "us-central1"
location = "us"
project = "httparchive"
project_number = "226352634162"
region = "us-central1"
location = "us"
}
5 changes: 4 additions & 1 deletion tf/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
terraform {
required_version = ">= 1.9.7"
required_providers {
google = ">= 6.6.0"
google = ">= 6.7.0"
google-beta = ">= 6.7.0"
archive = ">= 2.6.0"

}

backend "gcs" {
Expand Down
5 changes: 0 additions & 5 deletions tf/variables.tf

This file was deleted.

0 comments on commit 71afd41

Please sign in to comment.