Skip to content

Commit

Permalink
fix: Integrate into one DAG. (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlarge-google authored Jun 8, 2022
1 parent 67d7216 commit d3dba58
Show file tree
Hide file tree
Showing 12 changed files with 40,027 additions and 414 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,3 @@ resource "google_bigquery_dataset" "census_opportunity_atlas" {
output "bigquery_dataset-census_opportunity_atlas-dataset_id" {
value = google_bigquery_dataset.census_opportunity_atlas.dataset_id
}

resource "google_storage_bucket" "census-opportunity-atlas" {
name = "${var.bucket_name_prefix}-census-opportunity-atlas"
force_destroy = true
location = "US"
uniform_bucket_level_access = true
}

output "storage_bucket-census-opportunity-atlas-name" {
value = google_storage_bucket.census-opportunity-atlas.name
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,10 @@


resource "google_bigquery_table" "census_opportunity_atlas_tract_covariates" {
project = var.project_id
dataset_id = "census_opportunity_atlas"
table_id = "tract_covariates"

project = var.project_id
dataset_id = "census_opportunity_atlas"
table_id = "tract_covariates"
description = "Census Opportunity Atlas"




depends_on = [
google_bigquery_dataset.census_opportunity_atlas
]
Expand Down
34 changes: 34 additions & 0 deletions datasets/census_opportunity_atlas/infra/tract_outcomes_pipeline.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


resource "google_bigquery_table" "census_opportunity_atlas_tract_outcomes" {
project = var.project_id
dataset_id = "census_opportunity_atlas"
table_id = "tract_outcomes"
description = "tract_outcomesspc"
depends_on = [
google_bigquery_dataset.census_opportunity_atlas
]
}

output "bigquery_table-census_opportunity_atlas_tract_outcomes-table_id" {
value = google_bigquery_table.census_opportunity_atlas_tract_outcomes.table_id
}

output "bigquery_table-census_opportunity_atlas_tract_outcomes-id" {
value = google_bigquery_table.census_opportunity_atlas_tract_outcomes.id
}
Loading

0 comments on commit d3dba58

Please sign in to comment.