port bot to rust, upgrade response, and cut away some of the tf cruft

This commit is contained in:
41666 2022-02-06 19:16:08 -05:00
parent 0a37eff047
commit f5fb729ce7
17 changed files with 1440 additions and 205 deletions

View file

@ -1,12 +0,0 @@
locals {
artifactBaseMap = {
us-east4 = "us-docker.pkg.dev/roleypoly/roleypoly"
us-central1 = "us-docker.pkg.dev/roleypoly/roleypoly"
us-west1 = "us-docker.pkg.dev/roleypoly/roleypoly"
europe-west2 = "europe-docker.pkg.dev/roleypoly/roleypoly"
europe-west3 = "europe-docker.pkg.dev/roleypoly/roleypoly"
australia-southeast1 = "asia-docker.pkg.dev/roleypoly/roleypoly"
asia-northeast1 = "asia-docker.pkg.dev/roleypoly/roleypoly"
asia-southeast1 = "asia-docker.pkg.dev/roleypoly/roleypoly"
}
}

View file

@ -8,11 +8,6 @@ variable "environment_tag" {
}
}
variable "ui_regions" {
type = list(string)
description = "Cloud Run regions to deploy UI to"
}
variable "ui_tag" {
type = string
description = ":tag or @sha265: of *-docker.pkg.dev/roleypoly/roleypoly/ui"
@ -47,11 +42,6 @@ variable "ui_public_uri" {
description = "UI Public Base Path"
}
variable "ui_hostnames" {
type = list(string)
description = "Hostnames to allow web UI requests from, e.g. roleypoly.com, web-prod.roleypoly.com"
}
variable "api_public_uri" {
type = string
description = "API Public Base Path"

View file

@ -1,20 +1,6 @@
environment_tag = "prod"
ui_regions = [
"us-east4",
"us-central1",
"us-west1",
"europe-west2",
"europe-west3",
"australia-southeast1",
"asia-northeast1",
"asia-southeast1"
]
deploy_bot = true
bot_instance_size = "e2-medium"
ui_hostnames = [
"next.roleypoly.com",
"web-prod.roleypoly.com"
]
environment_tag = "prod"
deploy_bot = true
bot_instance_size = "e2-small"
ui_public_uri = "https://roleypoly.com"
api_public_uri = "https://api-prod.roleypoly.com"
allowed_callback_hosts = "https://roleypoly.com,https://next.roleypoly.com"

View file

@ -1,13 +1,6 @@
environment_tag = "stage"
ui_regions = [
"us-east4"
]
deploy_bot = true
bot_instance_size = "f1-micro"
ui_hostnames = [
"stage.roleypoly.com",
"web-stage.roleypoly.com"
]
environment_tag = "stage"
deploy_bot = true
bot_instance_size = "f1-micro"
ui_public_uri = "https://stage.roleypoly.com"
api_public_uri = "https://api-stage.roleypoly.com"
allowed_callback_hosts = "https://roleypoly.com,https://stage.roleypoly.com,https://*.roleypoly.pages.dev"
allowed_callback_hosts = "https://roleypoly.com,https://stage.roleypoly.com,https://*.roleypoly.pages.dev"