mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
76 lines
1.2 KiB
HCL
76 lines
1.2 KiB
HCL
terraform {
|
|
required_version = ">=0.14"
|
|
required_providers {
|
|
google = {
|
|
version = ">=3.49.0"
|
|
source = "hashicorp/google"
|
|
}
|
|
|
|
google-beta = {
|
|
version = ">=3.49.0"
|
|
source = "hashicorp/google"
|
|
}
|
|
|
|
cloudflare = {
|
|
version = ">=2.14.0"
|
|
source = "cloudflare/cloudflare"
|
|
}
|
|
|
|
random = {
|
|
version = ">=3.0.0"
|
|
source = "hashicorp/random"
|
|
}
|
|
|
|
null = {
|
|
version = ">=3.0.0"
|
|
source = "hashicorp/null"
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "cloudflare_email" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "cloudflare_api_token" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "cloudflare_account_id" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "cloudflare_zone_id" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
provider "cloudflare" {
|
|
email = var.cloudflare_email
|
|
api_token = var.cloudflare_api_token
|
|
account_id = var.cloudflare_account_id
|
|
}
|
|
|
|
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
|
|
}
|
|
|