2019-07-25 12:53:20 -04:00
|
|
|
variable "name" {
|
|
|
|
description = "Name of this environment to be used in all resources."
|
2019-07-30 14:36:52 -04:00
|
|
|
type = string
|
2019-07-25 12:53:20 -04:00
|
|
|
}
|
|
|
|
|
2019-07-25 17:05:05 -04:00
|
|
|
variable "stage" {
|
|
|
|
description = "Name of stage, used for DNS entry for this environment."
|
2019-07-30 14:36:52 -04:00
|
|
|
type = string
|
2019-07-25 17:05:05 -04:00
|
|
|
}
|
|
|
|
|
2019-07-25 12:53:20 -04:00
|
|
|
variable "gandi_zone_id" {
|
|
|
|
description = "ID of the zone in Gandi DNS registrar."
|
2019-07-30 14:36:52 -04:00
|
|
|
type = string
|
2019-07-25 12:53:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "dns_domain" {
|
|
|
|
description = "Name of domain for this environment."
|
2019-07-30 14:36:52 -04:00
|
|
|
type = string
|
2019-07-25 12:53:20 -04:00
|
|
|
}
|
|
|
|
|
2019-07-25 17:05:05 -04:00
|
|
|
variable "stack_name" {
|
|
|
|
description = "Name of application stack for ElasticBeanstalk."
|
2019-07-30 14:36:52 -04:00
|
|
|
type = string
|
2019-07-25 17:05:05 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "keypair_name" {
|
|
|
|
description = "Name of the AWS key pair for SSH access."
|
2019-07-30 14:36:52 -04:00
|
|
|
type = string
|
2019-07-25 17:05:05 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "max_availability_zones" {
|
|
|
|
description = "Maximum number of availability zones that can be used in Subnet."
|
|
|
|
default = "2"
|
2019-07-30 14:36:52 -04:00
|
|
|
type = string
|
2019-07-29 11:00:31 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "env_vars" {
|
|
|
|
description = "Environment variables to be defined in the ElasticBeanstalk environment."
|
2019-07-30 14:36:52 -04:00
|
|
|
type = map(string)
|
2019-07-25 12:53:20 -04:00
|
|
|
}
|
2019-07-26 17:02:09 -04:00
|
|
|
|
|
|
|
/* Scaling --------------------------------------*/
|
|
|
|
|
2019-07-30 15:08:34 -04:00
|
|
|
variable "instance_type" {
|
|
|
|
description = "Name of instance type to use"
|
|
|
|
default = "t2.micro"
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2019-07-26 17:02:09 -04:00
|
|
|
variable "autoscale_min" {
|
|
|
|
description = "Minimum instances autoscaling will create."
|
2019-07-29 11:00:31 -04:00
|
|
|
default = "1"
|
2019-07-30 14:36:52 -04:00
|
|
|
type = string
|
2019-07-26 17:02:09 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "autoscale_max" {
|
|
|
|
description = "Maximum instances autoscaling will create."
|
2019-07-29 11:00:31 -04:00
|
|
|
default = "2"
|
2019-07-30 14:36:52 -04:00
|
|
|
type = string
|
2019-07-26 17:02:09 -04:00
|
|
|
}
|