v3/terraform/providers.tf
Katalina 066f68ffef
feat: Slash Commands (#337)
* feat: add discord interactions worker

* feat(interactions): update CI/CD and terraform to add interactions

* chore: fix lint issues

* chore: fix build & emulation

* fix(interactions): deployment + handler

* chore: remove worker-dist via gitignore

* feat: add /pickable-roles and /pick-role basis

* feat: add pick, remove, and update the general /roleypoly command

* fix: lint missing Member import
2021-08-01 20:26:47 -04:00

94 lines
1.6 KiB
HCL

terraform {
required_version = ">=0.14"
required_providers {
google = {
version = ">=3.74.0"
source = "hashicorp/google"
}
google-beta = {
version = ">=3.74.0"
source = "hashicorp/google"
}
cloudflare = {
version = ">=2.23.0"
source = "cloudflare/cloudflare"
}
random = {
version = ">=3.1.0"
source = "hashicorp/random"
}
null = {
version = ">=3.1.0"
source = "hashicorp/null"
}
tls = {
version = ">=3.1.0"
source = "hashicorp/tls"
}
discord-interactions = {
source = "roleypoly/discord-interactions"
version = ">=0.0.1"
}
}
backend "gcs" {
bucket = "roleypoly-tfstate"
}
}
variable "cloudflare_api_token" {
type = string
sensitive = true
}
variable "cloudflare_origin_ca_key" {
type = string
sensitive = true
}
variable "cloudflare_account_id" {
type = string
sensitive = true
}
variable "cloudflare_zone_id" {
type = string
sensitive = true
}
provider "cloudflare" {
api_token = var.cloudflare_api_token
account_id = var.cloudflare_account_id
api_user_service_key = var.cloudflare_origin_ca_key
}
variable "gcp_project" {
type = string
sensitive = true
}
variable "gcp_region" {
type = string
default = "us-east4"
}
provider "google" {
project = var.gcp_project
region = var.gcp_region
}
provider "google-beta" {
project = var.gcp_project
region = var.gcp_region
}
provider "discord-interactions" {
application_id = var.bot_client_id
bot_token = var.bot_token
}