mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-23 14:00:26 +01:00
153 lines
3 KiB
HCL
153 lines
3 KiB
HCL
locals {
|
|
context_variables = {
|
|
"staging" = {
|
|
env = "staging"
|
|
create_satapi = 1
|
|
create_misc = 0
|
|
create_builders = 0
|
|
}
|
|
|
|
"prod" = {
|
|
env = "prod"
|
|
create_satapi = 1
|
|
create_misc = 0
|
|
create_builders = 0
|
|
}
|
|
|
|
"misc" = {
|
|
env = ""
|
|
create_satapi = 0
|
|
create_misc = 1
|
|
create_builders = 0
|
|
}
|
|
|
|
"builders" = {
|
|
env = ""
|
|
create_satapi = 0
|
|
create_misc = 0
|
|
create_builders = 1
|
|
}
|
|
}
|
|
|
|
env = "${lookup(local.context_variables[terraform.workspace], "env")}"
|
|
create_satapi = "${lookup(local.context_variables[terraform.workspace], "create_satapi")}"
|
|
create_misc = "${lookup(local.context_variables[terraform.workspace], "create_misc")}"
|
|
create_builders = "${lookup(local.context_variables[terraform.workspace], "create_builders")}"
|
|
}
|
|
|
|
variable "project" {
|
|
type = "string"
|
|
default = "satellite-api"
|
|
}
|
|
|
|
variable "name" {
|
|
type = "string"
|
|
default = "satapi-tor"
|
|
}
|
|
|
|
variable "create_resources" {
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "ssl_cert" {
|
|
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 = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "tor_instance_type" {
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "timeout" {
|
|
type = "string"
|
|
default = 15
|
|
}
|
|
|
|
variable "prom_service_acct" {
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "opsgenie_key" {
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
# Overwritten by CI
|
|
variable "ionosphere_docker" {
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
variable "ionosphere_sse_docker" {
|
|
type = "string"
|
|
default = ""
|
|
}
|
|
|
|
# Less frequently updated images
|
|
variable "node_exporter_docker" {
|
|
type = "string"
|
|
default = "prom/node-exporter@sha256:55302581333c43d540db0e144cf9e7735423117a733cdec27716d87254221086"
|
|
}
|
|
|
|
variable "bitcoin_docker" {
|
|
type = "string"
|
|
default = "blockstream/bitcoind@sha256:91ba0790a0080a99a529e73ef9b14e2d6cf0a30f81d54bfa3729bb47b105b36c"
|
|
}
|
|
|
|
variable "lightning_docker" {
|
|
type = "string"
|
|
default = "blockstream/lightningd@sha256:361aa1705304825b05625fc4f520458740e0630e55e7eb9c99d0eaef1a8b3c02"
|
|
}
|
|
|
|
variable "charge_docker" {
|
|
type = "string"
|
|
default = "blockstream/charged@sha256:0d49c1202b8b718b5a93f7e82509d3d724f9d18ff6c14376347f67866ac47ff8"
|
|
}
|
|
|
|
variable "tor_docker" {
|
|
type = "string"
|
|
default = "blockstream/gcloud-tor@sha256:be56a33b3010ac4c85037899714979bb4eb6c15fe85114bd009501750320617f"
|
|
}
|
|
|
|
variable "gcloud_docker" {
|
|
type = "string"
|
|
default = "google/cloud-sdk@sha256:b0d0555efef6a566f42fc4f0d89be9e1d74aff4565e27bbd206405f759d3f2b0"
|
|
}
|