Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
add deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hqy2000 committed May 2, 2024
1 parent c2acc60 commit 982079c
Show file tree
Hide file tree
Showing 28 changed files with 432 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .tf/BigQueryDataset/us-west1/cloud-city.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
resource "google_bigquery_dataset" "cloud_city" {
access {
role = "OWNER"
special_group = "projectOwners"
}

access {
role = "READER"
special_group = "projectReaders"
}

access {
role = "WRITER"
special_group = "projectWriters"
}

dataset_id = "cloud_city"
delete_contents_on_destroy = false
location = "us-west1"
project = "cloud-city-cal"
}
# terraform import google_bigquery_dataset.cloud_city projects/cloud-city-cal/datasets/cloud_city
18 changes: 18 additions & 0 deletions .tf/BigQueryTable/bay-area-511-event-partitioned.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "google_bigquery_table" "bay_area_511_event_partitioned" {
dataset_id = "cloud_city"
project = "cloud-city-cal"

range_partitioning {
field = "publish_time"

range {
end = 1735632000000000
interval = 86400000000
start = 1672560000000000
}
}

schema = "[{\"mode\":\"NULLABLE\",\"name\":\"url\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"jurisdiction_url\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"id\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"status\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"headline\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"event_type\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"severity\",\"type\":\"STRING\"},{\"fields\":[{\"mode\":\"REPEATED\",\"name\":\"coordinates\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"type\",\"type\":\"STRING\"}],\"mode\":\"NULLABLE\",\"name\":\"geography_point\",\"type\":\"RECORD\"},{\"fields\":[{\"mode\":\"REPEATED\",\"name\":\"coordinates\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"type\",\"type\":\"STRING\"}],\"mode\":\"NULLABLE\",\"name\":\"closure_geometry_point\",\"type\":\"RECORD\"},{\"mode\":\"NULLABLE\",\"name\":\"created\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"updated\",\"type\":\"STRING\"},{\"fields\":[{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"start_date\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"end_date\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"daily_start_time\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"daily_end_time\",\"type\":\"STRING\"},{\"mode\":\"REPEATED\",\"name\":\"days\",\"type\":\"STRING\"}],\"mode\":\"REPEATED\",\"name\":\"recurring_schedules\",\"type\":\"RECORD\"},{\"mode\":\"REPEATED\",\"name\":\"exceptions\",\"type\":\"STRING\"},{\"mode\":\"REPEATED\",\"name\":\"intervals\",\"type\":\"STRING\"}],\"mode\":\"NULLABLE\",\"name\":\"schedule\",\"type\":\"RECORD\"},{\"mode\":\"NULLABLE\",\"name\":\"timezone\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"description\",\"type\":\"STRING\"},{\"mode\":\"REPEATED\",\"name\":\"event_subtypes\",\"type\":\"STRING\"},{\"mode\":\"REPEATED\",\"name\":\"grouped_events\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"detour\",\"type\":\"STRING\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"name\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"from\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"to\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"state\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"direction\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"impacted_lane_type\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"road_advisory\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"lane_status\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"article\",\"type\":\"STRING\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"id\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"name\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"url\",\"type\":\"STRING\"}],\"mode\":\"REPEATED\",\"name\":\"areas\",\"type\":\"RECORD\"},{\"mode\":\"NULLABLE\",\"name\":\"lanes_open\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"lanes_closed\",\"type\":\"INTEGER\"},{\"mode\":\"REPEATED\",\"name\":\"impacted_systems\",\"type\":\"STRING\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"restriction_type\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"value\",\"type\":\"FLOAT\"}],\"mode\":\"REPEATED\",\"name\":\"restrictions\",\"type\":\"RECORD\"}],\"mode\":\"REPEATED\",\"name\":\"roads\",\"type\":\"RECORD\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"id\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"name\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"url\",\"type\":\"STRING\"}],\"mode\":\"REPEATED\",\"name\":\"areas\",\"type\":\"RECORD\"},{\"mode\":\"REPEATED\",\"name\":\"attachments\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"source_type\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"source_id\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"subscription_name\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"message_id\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"publish_time\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"attributes\",\"type\":\"JSON\"}]"
table_id = "bay_area_511_event_partitioned"
}
# terraform import google_bigquery_table.bay_area_511_event_partitioned projects/cloud-city-cal/datasets/cloud_city/tables/bay_area_511_event_partitioned
7 changes: 7 additions & 0 deletions .tf/BigQueryTable/metadata.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resource "google_bigquery_table" "metadata" {
dataset_id = "cloud_city"
project = "cloud-city-cal"
schema = "[{\"mode\":\"NULLABLE\",\"name\":\"version\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"data\",\"type\":\"JSON\"}]"
table_id = "metadata"
}
# terraform import google_bigquery_table.metadata projects/cloud-city-cal/datasets/cloud_city/tables/metadata
18 changes: 18 additions & 0 deletions .tf/BigQueryTable/output-partitioned.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "google_bigquery_table" "output_partitioned" {
dataset_id = "cloud_city"
project = "cloud-city-cal"

range_partitioning {
field = "publish_time"

range {
end = 1735632000000000
interval = 86400000000
start = 1672560000000000
}
}

schema = "[{\"mode\":\"NULLABLE\",\"name\":\"output\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"metadata_version\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"timestamp\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"segment_id\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"subscription_name\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"message_id\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"publish_time\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"attributes\",\"type\":\"JSON\"}]"
table_id = "output_partitioned"
}
# terraform import google_bigquery_table.output_partitioned projects/cloud-city-cal/datasets/cloud_city/tables/output_partitioned
18 changes: 18 additions & 0 deletions .tf/BigQueryTable/pems-partitioned.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "google_bigquery_table" "pems_partitioned" {
dataset_id = "cloud_city"
project = "cloud-city-cal"

range_partitioning {
field = "publish_time"

range {
end = 1735632000000000
interval = 86400000000
start = 1672560000000000
}
}

schema = "[{\"mode\":\"NULLABLE\",\"name\":\"time\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"station_id\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"district\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"freeway\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"direction\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"lane_type\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"station_length\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"samples\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"percentage_observed\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"total_flow\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"average_occupancy\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"average_speed\",\"type\":\"FLOAT\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"samples\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"flow\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"average_occupancy\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"average_speed\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"observed\",\"type\":\"BOOLEAN\"}],\"mode\":\"REPEATED\",\"name\":\"lanes\",\"type\":\"RECORD\"},{\"mode\":\"NULLABLE\",\"name\":\"subscription_name\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"message_id\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"publish_time\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"attributes\",\"type\":\"JSON\"}]"
table_id = "pems_partitioned"
}
# terraform import google_bigquery_table.pems_partitioned projects/cloud-city-cal/datasets/cloud_city/tables/pems_partitioned
18 changes: 18 additions & 0 deletions .tf/BigQueryTable/processed-partitioned.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "google_bigquery_table" "processed_partitioned" {
dataset_id = "cloud_city"
project = "cloud-city-cal"

range_partitioning {
field = "publish_time"

range {
end = 1735632000000000
interval = 86400000000
start = 1672560000000000
}
}

schema = "[{\"mode\":\"REPEATED\",\"name\":\"coefficients\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"metadata_version\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"timestamp\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"segment_id\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"subscription_name\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"message_id\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"publish_time\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"attributes\",\"type\":\"JSON\"}]"
table_id = "processed_partitioned"
}
# terraform import google_bigquery_table.processed_partitioned projects/cloud-city-cal/datasets/cloud_city/tables/processed_partitioned
18 changes: 18 additions & 0 deletions .tf/BigQueryTable/weather-partitioned.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "google_bigquery_table" "weather_partitioned" {
dataset_id = "cloud_city"
project = "cloud-city-cal"

range_partitioning {
field = "publish_time"

range {
end = 1735632000000000
interval = 86400000000
start = 1672560000000000
}
}

schema = "[{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"lon\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"lat\",\"type\":\"FLOAT\"}],\"mode\":\"NULLABLE\",\"name\":\"coord\",\"type\":\"RECORD\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"id\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"main\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"description\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"icon\",\"type\":\"STRING\"}],\"mode\":\"REPEATED\",\"name\":\"weather\",\"type\":\"RECORD\"},{\"mode\":\"NULLABLE\",\"name\":\"base\",\"type\":\"STRING\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"temp\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"feels_like\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"temp_min\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"temp_max\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"pressure\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"humidity\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"sea_level_pressure\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"ground_level_pressure\",\"type\":\"INTEGER\"}],\"mode\":\"NULLABLE\",\"name\":\"main\",\"type\":\"RECORD\"},{\"mode\":\"NULLABLE\",\"name\":\"visibility\",\"type\":\"INTEGER\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"speed\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"deg\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"gust\",\"type\":\"FLOAT\"}],\"mode\":\"NULLABLE\",\"name\":\"wind\",\"type\":\"RECORD\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"last_1h\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"last_3h\",\"type\":\"FLOAT\"}],\"mode\":\"NULLABLE\",\"name\":\"rain\",\"type\":\"RECORD\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"last_1h\",\"type\":\"FLOAT\"},{\"mode\":\"NULLABLE\",\"name\":\"last_3h\",\"type\":\"FLOAT\"}],\"mode\":\"NULLABLE\",\"name\":\"snow\",\"type\":\"RECORD\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"all\",\"type\":\"INTEGER\"}],\"mode\":\"NULLABLE\",\"name\":\"clouds\",\"type\":\"RECORD\"},{\"mode\":\"NULLABLE\",\"name\":\"dt\",\"type\":\"INTEGER\"},{\"fields\":[{\"mode\":\"NULLABLE\",\"name\":\"type\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"id\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"country\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"sunrise\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"sunset\",\"type\":\"INTEGER\"}],\"mode\":\"NULLABLE\",\"name\":\"sys\",\"type\":\"RECORD\"},{\"mode\":\"NULLABLE\",\"name\":\"timezone\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"id\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"name\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"cod\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"subscription_name\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"message_id\",\"type\":\"STRING\"},{\"mode\":\"NULLABLE\",\"name\":\"publish_time\",\"type\":\"INTEGER\"},{\"mode\":\"NULLABLE\",\"name\":\"attributes\",\"type\":\"JSON\"}]"
table_id = "weather_partitioned"
}
# terraform import google_bigquery_table.weather_partitioned projects/cloud-city-cal/datasets/cloud_city/tables/weather_partitioned
19 changes: 19 additions & 0 deletions .tf/PubSubSubscription/bigquery-bay-area-511-event.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
resource "google_pubsub_subscription" "bigquery_bay_area_511_event" {
ack_deadline_seconds = 10

bigquery_config {
table = "cloud-city-cal.cloud_city.bay_area_511_event_partitioned"
use_topic_schema = true
write_metadata = true
}

expiration_policy {
ttl = "2678400s"
}

message_retention_duration = "604800s"
name = "bigquery.bay_area_511_event"
project = "cloud-city-cal"
topic = "projects/cloud-city-cal/topics/data.bay_area_511_event"
}
# terraform import google_pubsub_subscription.bigquery_bay_area_511_event projects/cloud-city-cal/subscriptions/bigquery.bay_area_511_event
15 changes: 15 additions & 0 deletions .tf/PubSubSubscription/bigquery-weather.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
resource "google_pubsub_subscription" "bigquery_weather" {
ack_deadline_seconds = 10

bigquery_config {
table = "cloud-city-cal.cloud_city.weather_partitioned"
use_topic_schema = true
write_metadata = true
}

message_retention_duration = "604800s"
name = "bigquery.weather"
project = "cloud-city-cal"
topic = "projects/cloud-city-cal/topics/data.weather"
}
# terraform import google_pubsub_subscription.bigquery_weather projects/cloud-city-cal/subscriptions/bigquery.weather
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
resource "google_pubsub_subscription" "eventarc_us_west1_cf_preprocess_753210_sub_502" {
ack_deadline_seconds = 600

labels = {
goog-eventarc = ""
goog-drz-eventarc-location = "us-west1"
goog-drz-eventarc-uuid = "1e2d88b2-662b-4f8d-bf0b-22d34e4ad676"
}

message_retention_duration = "86400s"
name = "eventarc-us-west1-cf-preprocess-753210-sub-502"
project = "cloud-city-cal"

push_config {
oidc_token {
audience = "https://cf-preprocess-et73rt2k6a-uw.a.run.app"
service_account_email = "163650808003-compute@developer.gserviceaccount.com"
}

push_endpoint = "https://cf-preprocess-et73rt2k6a-uw.a.run.app?__GCP_CloudEventsMode=CUSTOM_PUBSUB_projects%2Fcloud-city-cal%2Ftopics%2Fscheduler.PreprocessingTriggerEvent"
}

retry_policy {
maximum_backoff = "600s"
minimum_backoff = "10s"
}

topic = "projects/cloud-city-cal/topics/scheduler.PreprocessingTriggerEvent"
}
# terraform import google_pubsub_subscription.eventarc_us_west1_cf_preprocess_753210_sub_502 projects/cloud-city-cal/subscriptions/eventarc-us-west1-cf-preprocess-753210-sub-502
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
resource "google_pubsub_subscription" "eventarc_us_west1_data_collection_bay_area_511_event_073018_sub_940" {
ack_deadline_seconds = 600

labels = {
goog-drz-eventarc-uuid = "4830dd8d-2c3b-4321-ae8d-958fa1a2c3ab"
goog-eventarc = ""
goog-drz-eventarc-location = "us-west1"
}

message_retention_duration = "86400s"
name = "eventarc-us-west1-data-collection-bay-area-511-event-073018-sub-940"
project = "cloud-city-cal"

push_config {
oidc_token {
audience = "https://data-collection-bay-area-511-event-et73rt2k6a-uw.a.run.app"
service_account_email = "163650808003-compute@developer.gserviceaccount.com"
}

push_endpoint = "https://data-collection-bay-area-511-event-et73rt2k6a-uw.a.run.app?__GCP_CloudEventsMode=CUSTOM_PUBSUB_projects%2Fcloud-city-cal%2Ftopics%2Fscheduler.BayArea511DataCollectionScheduledEvent"
}

retry_policy {
maximum_backoff = "600s"
minimum_backoff = "10s"
}

topic = "projects/cloud-city-cal/topics/scheduler.BayArea511DataCollectionScheduledEvent"
}
# terraform import google_pubsub_subscription.eventarc_us_west1_data_collection_bay_area_511_event_073018_sub_940 projects/cloud-city-cal/subscriptions/eventarc-us-west1-data-collection-bay-area-511-event-073018-sub-940
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
resource "google_pubsub_subscription" "eventarc_us_west1_data_collection_pems_655802_sub_491" {
ack_deadline_seconds = 600

labels = {
goog-drz-eventarc-location = "us-west1"
goog-eventarc = ""
goog-drz-eventarc-uuid = "dcd971ac-5e9e-4228-86d8-9c3d31b1c47f"
}

message_retention_duration = "86400s"
name = "eventarc-us-west1-data-collection-pems-655802-sub-491"
project = "cloud-city-cal"

push_config {
oidc_token {
audience = "https://data-collection-pems-et73rt2k6a-uw.a.run.app"
service_account_email = "163650808003-compute@developer.gserviceaccount.com"
}

push_endpoint = "https://data-collection-pems-et73rt2k6a-uw.a.run.app?__GCP_CloudEventsMode=CUSTOM_PUBSUB_projects%2Fcloud-city-cal%2Ftopics%2Fscheduler.PeMSDataCollectionScheduledEvent"
}

retry_policy {
maximum_backoff = "600s"
minimum_backoff = "10s"
}

topic = "projects/cloud-city-cal/topics/scheduler.PeMSDataCollectionScheduledEvent"
}
# terraform import google_pubsub_subscription.eventarc_us_west1_data_collection_pems_655802_sub_491 projects/cloud-city-cal/subscriptions/eventarc-us-west1-data-collection-pems-655802-sub-491
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
resource "google_pubsub_subscription" "eventarc_us_west1_data_collection_weather_2_003578_sub_617" {
ack_deadline_seconds = 600

labels = {
goog-drz-eventarc-location = "us-west1"
goog-drz-eventarc-uuid = "6c3db25f-d02c-48e5-bf9c-fc75d3a44c5b"
goog-eventarc = ""
}

message_retention_duration = "86400s"
name = "eventarc-us-west1-data-collection-weather-2-003578-sub-617"
project = "cloud-city-cal"

push_config {
oidc_token {
audience = "https://data-collection-weather-2-et73rt2k6a-uw.a.run.app"
service_account_email = "163650808003-compute@developer.gserviceaccount.com"
}

push_endpoint = "https://data-collection-weather-2-et73rt2k6a-uw.a.run.app?__GCP_CloudEventsMode=CUSTOM_PUBSUB_projects%2Fcloud-city-cal%2Ftopics%2Fscheduler.WeatherDataCollectionScheduledEvent"
}

retry_policy {
maximum_backoff = "600s"
minimum_backoff = "10s"
}

topic = "projects/cloud-city-cal/topics/scheduler.WeatherDataCollectionScheduledEvent"
}
# terraform import google_pubsub_subscription.eventarc_us_west1_data_collection_weather_2_003578_sub_617 projects/cloud-city-cal/subscriptions/eventarc-us-west1-data-collection-weather-2-003578-sub-617
Loading

0 comments on commit 982079c

Please sign in to comment.