mirror of
https://github.com/dap-ps/infra-dapps.git
synced 2026-08-31 13:31:14 +00:00
102 lines
2.1 KiB
Terraform
102 lines
2.1 KiB
Terraform
/* IMAGE ----------------------------------------*/
|
|
|
|
variable "image_name" {
|
|
description = "Name of AMI image to use."
|
|
type = string
|
|
default = "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"
|
|
}
|
|
|
|
variable "image_owner" {
|
|
description = "ID of the owner of AMI image."
|
|
type = string
|
|
default = "099720109477"
|
|
}
|
|
|
|
variable "ssh_user" {
|
|
description = "User used for SSH access."
|
|
type = string
|
|
default = "ubuntu"
|
|
}
|
|
|
|
/* HOSTING --------------------------------------*/
|
|
|
|
variable "zone" {
|
|
description = "Name of availability zone to deploy to."
|
|
type = string
|
|
default = "us-east-1a"
|
|
}
|
|
|
|
variable "subdomain" {
|
|
description = "Subdomain for hosts entries."
|
|
type = string
|
|
}
|
|
|
|
variable "domain" {
|
|
description = "Public DNS Domain address"
|
|
type = string
|
|
}
|
|
|
|
variable "open_ports" {
|
|
description = "Which ports should be opened on the firewal."
|
|
type = list(number)
|
|
}
|
|
|
|
variable "keypair_name" {
|
|
description = "Name of SSH key pair in AWS."
|
|
type = string
|
|
}
|
|
|
|
/* NETWORK --------------------------------------*/
|
|
|
|
variable "vpc_id" {
|
|
description = "ID of VPC for the instance."
|
|
type = string
|
|
}
|
|
|
|
variable "subnet_id" {
|
|
description = "ID of the subnet to use for the instance."
|
|
type = string
|
|
}
|
|
|
|
variable "sec_group" {
|
|
description = "ID of the VPC security group for the instance."
|
|
type = string
|
|
}
|
|
|
|
/* DNS ------------------------------------------*/
|
|
|
|
variable "route53_zone_id" {
|
|
description = "ID of the zone in AWS Route53."
|
|
type = string
|
|
}
|
|
|
|
/* SCALING --------------------------------------*/
|
|
|
|
variable "host_count" {
|
|
description = "Number of instances to create."
|
|
type = number
|
|
}
|
|
|
|
variable "instance_type" {
|
|
description = "Name of instance type to use"
|
|
type = string
|
|
default = "t2.micro"
|
|
}
|
|
|
|
/* SPECIFIC -------------------------------------*/
|
|
|
|
variable "groups" {
|
|
description = "Name of Ansible group"
|
|
type = list(string)
|
|
}
|
|
|
|
variable "env" {
|
|
description = "Name of environment to create"
|
|
type = string
|
|
}
|
|
|
|
variable "stage" {
|
|
description = "Name of stage, like prod, dev, or staging."
|
|
type = string
|
|
}
|