Files
engine/lib/aws/bootstrap/tf-default-vars.j2.tf
2021-06-23 09:06:00 +02:00

298 lines
6.6 KiB
HCL

# Qovery
variable "cloud_provider" {
description = "Cloud provider name"
default = "aws"
type = string
}
variable "region" {
description = "AWS region to store terraform state and lock"
default = "{{ aws_region }}"
type = string
}
variable "organization_id" {
description = "Qovery Organization ID"
default = "{{ organization_id }}"
type = string
}
variable "qovery_nats_url" {
description = "URL of qovery nats server"
default = "{{ qovery_nats_url }}"
type = string
}
variable "qovery_nats_user" {
description = "user of qovery nats server"
default = "{{ qovery_nats_user }}"
type = string
}
variable "qovery_nats_password" {
description = "password of qovery nats server"
default = "{{ qovery_nats_password }}"
type = string
}
variable "test_cluster" {
description = "Is this a test cluster?"
default = "{{ test_cluster }}"
type = string
}
# AWS specific
variable "vpc_cidr_block" {
description = "VPC CIDR block"
default = "{{ vpc_cidr_block }}"
type = string
}
# Kubernetes
variable "eks_subnets_zone_a" {
description = "EKS subnets Zone A"
default = {{ eks_zone_a_subnet_blocks }}
type = list(string)
}
variable "eks_subnets_zone_b" {
description = "EKS subnets Zone B"
default = {{ eks_zone_b_subnet_blocks }}
type = list(string)
}
variable "eks_subnets_zone_c" {
description = "EKS subnets Zone C"
default = {{ eks_zone_c_subnet_blocks }}
type = list(string)
}
variable "eks_cidr_subnet" {
description = "EKS CIDR (x.x.x.x/CIDR)"
default = {{ eks_cidr_subnet }}
type = number
}
variable "eks_k8s_versions" {
description = "Kubernetes version"
default = {
"masters": "{{ eks_masters_version }}",
"workers": "{{ eks_workers_version }}",
}
type = map(string)
}
variable "kubernetes_cluster_id" {
description = "Kubernetes cluster id"
default = "{{ kubernetes_cluster_id }}"
type = string
}
variable "kubernetes_cluster_name" {
description = "Kubernetes cluster name"
default = "qovery-{{ kubernetes_cluster_id }}"
type = string
}
variable "eks_access_cidr_blocks" {
description = "Kubernetes cluster name"
default = {{ eks_access_cidr_blocks }}
type = list(string)
}
variable "eks_cloudwatch_log_group" {
description = "AWS cloudwatch log group for EKS"
default = "qovery-{{ eks_cloudwatch_log_group }}"
type = string
}
# S3 bucket name
variable "s3_bucket_kubeconfig" {
description = "S3 bucket containing kubeconfigs"
default = "{{ s3_kubeconfig_bucket }}"
type = string
}
# EC2 SSH default SSH key
variable "ec2_ssh_default_key" {
description = "Default SSH key"
default = {
"key_name" = "qovery-{{ kubernetes_cluster_id }}"
"public_key" = "{{ qovery_ssh_key }}"
}
type = map(string)
}
# Engine info
variable "qovery_engine_info" {
description = "Qovery engine info"
default = {
"token" = "{{ engine_version_controller_token }}"
"api_fqdn" = "{{ qovery_api_url }}"
}
type = map(string)
}
variable "qovery_engine_replicas" {
description = "This variable is used to get random ID generated for the engine"
default = "2"
type = number
}
# Agent info
variable "qovery_agent_info" {
description = "Qovery agent info"
default = {
"token" = "{{ agent_version_controller_token }}"
"api_fqdn" = "{{ qovery_api_url }}"
}
type = map(string)
}
variable "qovery_agent_replicas" {
description = "This variable is used to get random ID generated for the agent"
default = "1"
type = number
}
# RDS
variable "rds_subnets_zone_a" {
description = "RDS subnets Zone A"
default = {{ rds_zone_a_subnet_blocks }}
type = list(string)
}
variable "rds_subnets_zone_b" {
description = "RDS subnets Zone B"
default = {{ rds_zone_b_subnet_blocks }}
type = list(string)
}
variable "rds_subnets_zone_c" {
description = "RDS subnets Zone C"
default = {{ rds_zone_c_subnet_blocks }}
type = list(string)
}
variable "rds_cidr_subnet" {
description = "RDS CIDR (x.x.x.x/CIDR)"
default = {{ rds_cidr_subnet }}
type = number
}
# DocumentDB
variable "documentdb_subnets_zone_a" {
description = "DocumentDB subnets Zone A"
default = {{ documentdb_zone_a_subnet_blocks }}
type = list(string)
}
variable "documentdb_subnets_zone_b" {
description = "DocumentDB subnets Zone B"
default = {{ documentdb_zone_b_subnet_blocks }}
type = list(string)
}
variable "documentdb_subnets_zone_c" {
description = "DocumentDB subnets Zone C"
default = {{ documentdb_zone_c_subnet_blocks }}
type = list(string)
}
variable "documentdb_cidr_subnet" {
description = "DocumentDB CIDR (x.x.x.x/CIDR)"
default = {{ documentdb_cidr_subnet }}
type = number
}
# Elasticache
variable "elasticache_subnets_zone_a" {
description = "Elasticache subnets Zone A"
default = {{ elasticache_zone_a_subnet_blocks }}
type = list(string)
}
variable "elasticache_subnets_zone_b" {
description = "Elasticache subnets Zone B"
default = {{ elasticache_zone_b_subnet_blocks }}
type = list(string)
}
variable "elasticache_subnets_zone_c" {
description = "Elasticache subnets Zone C"
default = {{ elasticache_zone_c_subnet_blocks }}
type = list(string)
}
variable "elasticache_cidr_subnet" {
description = "Elasticache CIDR (x.x.x.x/CIDR)"
default = {{ elasticache_cidr_subnet }}
type = number
}
# Elasticsearch
variable "elasticsearch_subnets_zone_a" {
description = "Elasticsearch subnets Zone A"
default = {{ elasticsearch_zone_a_subnet_blocks }}
type = list(string)
}
variable "elasticsearch_subnets_zone_b" {
description = "Elasticsearch subnets Zone B"
default = {{ elasticsearch_zone_b_subnet_blocks }}
type = list(string)
}
variable "elasticsearch_subnets_zone_c" {
description = "Elasticsearch subnets Zone C"
default = {{ elasticsearch_zone_c_subnet_blocks }}
type = list(string)
}
variable "elasticsearch_cidr_subnet" {
description = "Elasticsearch CIDR (x.x.x.x/CIDR)"
default = {{ elasticsearch_cidr_subnet }}
type = number
}
# Helm alert manager discord
variable "discord_api_key" {
description = "discord url with token for used for alerting"
default = "{{ discord_api_key }}"
type = string
}
# Qovery features
variable "log_history_enabled" {
description = "Enable log history"
default = {{ log_history_enabled }}
type = bool
}
variable "metrics_history_enabled" {
description = "Enable metrics history"
default = {{ metrics_history_enabled }}
type = bool
}
{%- if resource_expiration_in_seconds is defined %}
# Pleco ttl
variable "resource_expiration_in_seconds" {
description = "Resource expiration in seconds"
default = {{ resource_expiration_in_seconds }}
type = number
}
{% endif %}