2024-05-01 16:59:07 -05:00
|
|
|
|
|
|
|
|
# required
|
|
|
|
|
variable "aws_region" {
|
|
|
|
|
type = string
|
|
|
|
|
default = "us-east-2"
|
|
|
|
|
}
|
|
|
|
|
# required
|
|
|
|
|
variable "project_name" {
|
|
|
|
|
type = string
|
|
|
|
|
default = "doczyai"
|
|
|
|
|
}
|
|
|
|
|
# required
|
|
|
|
|
variable "environment" {
|
|
|
|
|
type = string
|
|
|
|
|
default = "dev"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variable "client_list" {
|
|
|
|
|
type = map(object({
|
|
|
|
|
client_name = string
|
|
|
|
|
}))
|
|
|
|
|
default = {
|
|
|
|
|
client1 = {
|
|
|
|
|
client_name = "cn1"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "vpc_id" {
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "ubuntu_ami" {
|
|
|
|
|
type = string
|
2024-05-17 13:32:34 -05:00
|
|
|
default = "ami-0de7e97fedfbc6ef6" # Switch to this ami-0b8b44ec9a8f90422
|
2024-05-01 16:59:07 -05:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "ec2_instance_type" {
|
|
|
|
|
type = string
|
2024-05-17 13:32:34 -05:00
|
|
|
default = "t2.large"
|
2024-05-01 16:59:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# EC2 iam role name
|
|
|
|
|
variable "ec2_iam_role_name" {
|
|
|
|
|
type = string
|
|
|
|
|
default = "ec2-iam-role"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Cerate an array of ARNS
|
|
|
|
|
variable "SecretsNames"{
|
|
|
|
|
type = list(string)
|
|
|
|
|
default = []
|
2024-05-17 13:32:34 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "acm_arn_dev" {
|
|
|
|
|
type = string
|
|
|
|
|
default = "arn:aws:acm:us-east-2:660131068782:certificate/3a146592-2b00-4b33-90a6-0d9ab0040d8b"
|
2024-05-01 16:59:07 -05:00
|
|
|
}
|