Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gcp Deployment #560

Merged
merged 3 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/terraform/aws/lambda/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ variable "buz_domain" {
variable "buz_version" {
description = "The version of Buz to run."
type = string
default = "v0.16.3"
default = "v0.16.4"
}

variable "buz_lambda_memory_limit" {
Expand Down
12 changes: 6 additions & 6 deletions deploy/terraform/gcp/cloud_run/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ data "google_project" "project" {}
// NOTE
// Uncomment this if you want to store tfstate in a
// pre-existing GCS bucket
# terraform {
# backend "gcs" {
# bucket = "YOUR_TFSTATE_BUCKET"
# prefix = "YOUR_TFSTATE_PREFIX"
# }
# }
# terraform {
# backend "gcs" {
# bucket = "YOUR_TFSTATE_BUCKET"
# prefix = "YOUR_TFSTATE_PREFIX"
# }
# }

module "template_files" {
source = "hashicorp/dir/template"
Expand Down
22 changes: 22 additions & 0 deletions deploy/terraform/gcp/cloud_run/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"name": "data",
"type": "STRING"
},
{
"name": "subscription_name",
"type": "STRING"
},
{
"name": "publish_time",
"type": "TIMESTAMP"
},
{
"name": "message_id",
"type": "STRING"
},
{
"name": "attributes",
"type": "STRING"
}
]
6 changes: 3 additions & 3 deletions deploy/terraform/gcp/cloud_run/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ variable "buz_domain" {
variable "buz_version" {
description = "The version of Buz to run."
type = string
default = "v0.16.3"
default = "v0.16.4"
}

variable "buz_service_timeout_seconds" {
Expand Down Expand Up @@ -87,11 +87,11 @@ variable "bigquery_dataset_name" {
variable "default_bigquery_table" {
description = "The name of the default BigQuery table"
type = string
default = "invalid_events"
default = "events"
}

variable "deadletter_bigquery_table" {
description = "The name of the deadletter BigQuery table"
type = string
default = "events"
default = "invalid_events"
}
2 changes: 1 addition & 1 deletion schemas/com.github/hook/repository/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "com.github/hook/repository/v1.0.json",
"title": "com.github/hook/repository/v1.0.json",
"description": "Wrapper for repository-level Github hooks",
Expand Down
2 changes: 1 addition & 1 deletion schemas/com.stripe/hook/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "com.stripe/hook/v1.0.json",
"title": "com.stripe/hook/v1.0.json",
"description": "Wrapper for Stripe hooks",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/amplitude/event/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/amplitude/event/v1.0.json",
"title": "io.silverton/amplitude/event/v1.0.json",
"description": "Amplitude event spec",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/example/generic/sample/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/example/generic/sample/v1.0.json",
"title": "io.silverton/buz/example/generic/sample/v1.0.json",
"description": "Schema for testing generic events",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/example/gettingStarted/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/example/gettingStarted/v1.0.json",
"title": "io.silverton/buz/example/gettingStarted/v1.0.json",
"description": "A getting started event used to bootstrap and demonstrate validation",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/example/productView/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/example/productView/v1.0.json",
"title": "io.silverton/buz/example/productView/v1.0.json",
"description": "Schema for product views",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/hook/arbitrary/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/hook/arbitrary/v1.0.json",
"title": "io.silverton/buz/hook/arbitrary/v1.0.json",
"description": "A catchall schema for unnamed events consisting of arbitrary webhook payloads.",
Expand Down
4 changes: 2 additions & 2 deletions schemas/io.silverton/buz/internal/config/app/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$id": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"title": "io.silverton/buz/internal/config/app/v1.0.json",
"description": "Application configuration",
"owner": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/internal/contexts/httpHeaders/v1.0.json",
"title": "io.silverton/buz/internal/contexts/httpHeaders/v1.0.json",
"description": "HTTP headers context",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/internal/envelope/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/envelope/v1.0.json",
"title": "io.silverton/buz/envelope/v1.0.json",
"description": "Buz envelope",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/internal/meta/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/internal/meta/v1.0.json",
"description": "The Buz Metaschema",
"self": {
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/internal/tele/beat/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/tele/beat/v1.0.json",
"title": "io.silverton/buz/tele/beat/v1.0.json",
"description": "Buz heartbeat event",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/internal/tele/meta/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/tele/meta/v1.0.json",
"title": "io.silverton/buz/tele/meta/v1.0.json",
"owner": {
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/internal/tele/shutdown/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/tele/shutdown/v1.0.json",
"title": "io.silverton/buz/tele/shutdown/v1.0.json",
"description": "Buz shutdown event",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/internal/tele/startup/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/internal/tele/startup/v1.0.json",
"title": "io.silverton/buz/internal/tele/startup/v1.0.json",
"description": "Buz startup event",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/pixel/arbitrary/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/pixel/arbitrary/v1.0.json",
"title": "io.silverton/buz/pixel/arbitrary/v1.0.json",
"description": "A catchall schema for unnamed events consisting of arbitrary pixel payloads.",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/pixel/linkClick/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/pixel/linkClick/v1.0.json",
"title": "io.silverton/buz/pixel/linkClick/v1.0.json",
"description": "A generalized schema for link clicks tracked via pixel",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/buz/pixel/pageView/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/buz/pixel/pageView/v1.0.json",
"title": "io.silverton/buz/pixel/pageView/v1.0.json",
"description": "A generalized schema for page views tracked via pixel",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/segment/common/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/segment/spec/common/v1.0.json",
"title": "io.silverton/segment/spec/common/v1.0.json",
"description": "Segment common fields spec",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/snowplow/page_ping/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/snowplow/page_ping/v1.0.json",
"title": "io.silverton/snowplow/page_ping/v1.0.json",
"description": "Snowplow Page Ping Event",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/snowplow/page_view/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/snowplow/page_view/v1.0.json",
"title": "io.silverton/snowplow/page_view/v1.0.json",
"description": "Snowplow Page View Event",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/snowplow/payload_data/v1.4.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,5 +267,5 @@
],
"additionalProperties": false,
"type": "object",
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json"
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json"
}
2 changes: 1 addition & 1 deletion schemas/io.silverton/snowplow/struct/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/snowplow/struct/v1.0.json",
"title": "io.silverton/snowplow/struct/v1.0.json",
"description": "Snowplow Struct Event",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/snowplow/transaction/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/snowplow/transaction/v1.0.json",
"title": "io.silverton/snowplow/transaction/v1.0.json",
"description": "Snowplow Transaction Event",
Expand Down
2 changes: 1 addition & 1 deletion schemas/io.silverton/snowplow/transaction_item/v1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://r.buz.dev/s/io.silverton/buz/internal/meta/v1.0.json",
"$schema": "https://raw.githubusercontent.com/silverton-io/buz/main/schemas/io.silverton/buz/internal/meta/v1.0.json",
"$id": "io.silverton/snowplow/transaction_item/v1.0.json",
"title": "io.silverton/snowplow/transaction_item/v1.0.json",
"description": "Snowplow Transaction Item Event",
Expand Down
Loading