mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-23 14:00:26 +01:00
211 lines
3.9 KiB
HCL
211 lines
3.9 KiB
HCL
locals {
|
|
context_variables = {
|
|
"staging" = {
|
|
env = "staging"
|
|
create_mainnet = 1
|
|
create_testnet = 0
|
|
create_misc = 0
|
|
}
|
|
"prod" = {
|
|
env = "prod"
|
|
create_mainnet = 1
|
|
create_testnet = 0
|
|
create_misc = 0
|
|
}
|
|
"testnet-staging" = {
|
|
env = "staging"
|
|
create_mainnet = 0
|
|
create_testnet = 1
|
|
create_misc = 0
|
|
}
|
|
"testnet-prod" = {
|
|
env = "prod"
|
|
create_mainnet = 0
|
|
create_testnet = 1
|
|
create_misc = 0
|
|
}
|
|
"misc" = {
|
|
env = ""
|
|
create_mainnet = 0
|
|
create_testnet = 0
|
|
create_misc = 1
|
|
}
|
|
}
|
|
|
|
env = local.context_variables[terraform.workspace]["env"]
|
|
create_mainnet = local.context_variables[terraform.workspace]["create_mainnet"]
|
|
create_testnet = local.context_variables[terraform.workspace]["create_testnet"]
|
|
create_misc = local.context_variables[terraform.workspace]["create_misc"]
|
|
}
|
|
|
|
variable "project" {
|
|
type = string
|
|
default = "satellite-api"
|
|
}
|
|
|
|
variable "name" {
|
|
type = string
|
|
default = "satapi-tor"
|
|
}
|
|
|
|
variable "create_resources" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "target_pool" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "rpcuser" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "rpcpass" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "host" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "onion_host" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "region" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "zone" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "instance_type" {
|
|
type = list(string)
|
|
default = ["", "", ""]
|
|
}
|
|
|
|
variable "timeout" {
|
|
type = string
|
|
default = 7200
|
|
}
|
|
|
|
variable "prom_service_acct" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "lb_svc_acct" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "prom_allowed_source_ip" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "opsgenie_key" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "satellite_lb" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "satellite_api_lb" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "satellite_api_lb_staging" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "internal_ip_mainnet" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "internal_ip_testnet" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "health_check" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
# Overwritten by CI
|
|
variable "public_bucket_url" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "letsencrypt_email" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "ionosphere_docker" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "ionosphere_sse_docker" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
# Less frequently updated images
|
|
variable "bitcoin_docker" {
|
|
type = string
|
|
default = "blockstream/bitcoind@sha256:70f5ed2674975cf353b3ff07e85e23bb6e3dd6082dc3de91ce5fd06b6f16395a"
|
|
}
|
|
|
|
variable "lightning_docker" {
|
|
type = string
|
|
default = "blockstream/lightningd@sha256:58610c12fd9b25c2957529b770ffd39d877cd5aa13dae414880f236802817fba"
|
|
}
|
|
|
|
variable "charge_docker" {
|
|
type = string
|
|
default = "blockstream/charged@sha256:0d49c1202b8b718b5a93f7e82509d3d724f9d18ff6c14376347f67866ac47ff8"
|
|
}
|
|
|
|
variable "tor_docker" {
|
|
type = string
|
|
default = "blockstream/tor@sha256:46594b0a84f7503de70078652e7bd94f6152b7976d11779ad9f143f02508284c"
|
|
}
|
|
|
|
variable "node_exporter_docker" {
|
|
type = string
|
|
default = "prom/node-exporter@sha256:55302581333c43d540db0e144cf9e7735423117a733cdec27716d87254221086"
|
|
}
|
|
|
|
variable "prom_docker" {
|
|
type = string
|
|
default = "blockstream/prometheus@sha256:cab8c2359ab187aa6c9e9c7fcfcc3060b62742417030a77862c747e091d3c6d6"
|
|
}
|
|
|
|
variable "gcloud_docker" {
|
|
type = string
|
|
default = "google/cloud-sdk@sha256:78e68a98c5d6aa36eca45099bae38a1544a1688fd16b506fb914a29fdf6e4afa"
|
|
}
|
|
|
|
variable "certbot_docker" {
|
|
type = string
|
|
default = "blockstream/certbot-gcs@sha256:516ba43a03f558c73cd3807dc2b31a3ad123205dd53682a5da70396b75b53881"
|
|
}
|