aboutsummaryrefslogblamecommitdiff
blob: 11cf2cf6902a8c40dfc9fe4aa2b0640de43a2e7a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                      
     



                                





























                                
                      

 
                        

                       


                        
                  

                    

                               
                  

                              





                                                                        

















                                        











                                    





                                     
provider "aws" {
  region = var.region
}

variable "name" {
  description = "Name of the service. It will be used to name EC2, and RDS instances."
  default     = "jinwei-me"
}

variable "region" {
  default     = "us-west-2"
  description = "AWS region"
}

# RDS
variable "rds_initial_db_name" {
  default = "wordpress"
}

variable "rds_instance_class" {
  default = "db.t3.micro"
}

variable "rds_storage" {
  default = 20
}

variable "rds_username" {
  default = "jinweime"
}

variable "rds_engine" {
  default = "mariadb"
}

variable "rds_engine_version" {
  default = "10.6"
}

variable "rds_parameter_group" {
  default = "mariadb10.6"
}

variable "rds_port" {
  default = 33060
}

# EC 2
variable "ec2_instance_type" {
  default = "t2.micro"
}

variable "site_domain" {
  type    = string
  default = "jinwei.me"
}

variable "s3_cdn_name" {
  type    = string
  default = "static"
}

variable "s3_cloudfront_name" {
  type    = string
  default = "static.jinwei.me"
}

variable "cloudflare_account_id" {
  description = "The Cloudflare UUID for the Account the Zone lives in."
  type        = string
  sensitive   = true
}

variable "hetzner_username" {
  description = "Hetzner username"
  type        = string
  sensitive   = true
}

variable "hetzner_password" {
  description = "Hetzner password"
  type        = string
  sensitive   = true
}

variable "hetzner_storagebox" {
  description = "Hetzner storagebox url"
  type        = string
  sensitive   = true
}

variable "dockerhub_username" {
  description = "dockerhub username"
  type        = string
  sensitive   = true
}

variable "dockerhub_token" {
  description = "dockerhub token"
  type        = string
  sensitive   = true
}

variable "datadog_api_key" {
  description = "Datadog.com API Key"
  type = string
  sensitive = true
}
Powered by cgit v1.2.3 (git 2.41.0)