Vizzuality/landgriffon

View on GitHub
infrastructure/kubernetes/modules/gcp/env/variables.tf

Summary

Maintainability
Test Coverage
variable "project_name" {
  default     = "landgriffon"
  type        = string
  description = "A project namespace for the infrastructure."
}

variable "environment" {
  type        = string
  description = "An environment namespace for the infrastructure."
}

variable "gcp_region" {
  type        = string
  description = "A valid GCP region to configure the underlying GCP SDK."
}

variable "gcp_project" {
  type        = string
  description = "A valid GCP project id to configure the underlying GCP SDK."
}

variable "gcp_zone" {
  description = "A valid GCP zone to configure the underlying GCP SDK."
  type        = string
}

variable "repo_name" {
  type        = string
  description = "Name of the github repo where the project is hosted"
}

variable "repo_branch" {
  type        = string
  description = "The github branch to use"
}

variable "cluster_name" {
  type        = string
  description = "The k8s cluster name"
}

variable "domain" {
  type        = string
  description = "Domain where the app is publicly available"
}

variable "private_subnet_ids" {
  type        = list(string)
  description = "IDs of the subnets used in the EKS cluster"
}

variable "image_tag" {
  type        = string
  description = "The tag to use when pulling docker images"
}

variable "tf_state_bucket" {
  type        = string
  description = "The name of the S3 bucket where the state is stored"
}

variable "allowed_account_id" {
  type        = string
  description = "Allowed AWS Account ID"
}

variable "gmaps_api_key" {
  type        = string
  sensitive   = true
  description = "The Google Maps API key used for access to the geocoding API"
}

variable "load_fresh_data" {
  type        = bool
  default     = false
  description = "If a new data import should be triggered. Clears the current database."
}

variable "data_import_arguments" {
  type        = list(string)
  default     = ["seed-data"]
  description = "Arguments to pass to the initial data import process"
}

variable "api_container_registry_url" {
  type        = string
  description = "URL for the API container registry"
}

variable "tiler_container_registry_url" {
  type        = string
  description = "URL for the Tiler container registry"
}

variable "client_container_registry_url" {
  type        = string
  description = "URL for the client container registry"
}

variable "aws_access_key_id" {
  type        = string
  description = "AWS Access Key ID to read S3 data for data import"
}

variable "aws_secret_access_key" {
  type        = string
  description = "AWS Secret Access Key to read S3 data for data import"
}

variable "science_bucket_name" {
  type        = string
  description = "Name of the LG Science S3 Bucket"
}

variable "data_import_container_registry_url" {
  type        = string
  description = "URL for the data import container registry"
}

variable "api_env_vars" {
  type = list(object({
    name  = string
    value = string
  }))
  description = "Key-value pairs of env vars to make available to the api container"
  default     = []
}

variable "api_secrets" {
  type = list(object({
    name        = string
    secret_name = string
    secret_key  = string
  }))
  description = "List of secrets to make available to the api container"
  default     = []
}

variable "tiler_env_vars" {
  type = list(object({
    name  = string
    value = string
  }))
  description = "Key-value pairs of env vars to make available to the tiler container"
  default     = []
}