-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
55 lines (51 loc) · 1.3 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Global variables
variable "env" {
description = "Name of environment"
}
variable "global_prefix" {
description = "Name of project / company/ customer"
}
# ECR repo
variable "backup_image_repo" {
description = "Image repository name"
default = "iaac/aws-lamda-mysql-backup"
}
variable "backup_image_tag" {
description = "Image tag version"
default = "latest"
}
# VPC config
variable "region" {
description = "Name of AWS region"
}
variable "vpc_id" {
description = "VPC ID"
}
variable "vpc_security_group_ids" {
description = "IDs of VPC security group"
type = list(string)
}
variable "vpc_subnet_ids" {
description = "IDs of VPC subnets"
type = list(string)
}
variable "route_table_ids" {
description = "IDs of route tables associated with VPC"
type = list(string)
}
# Function variables
variable "database_host" {
description = "Entrypoint to database"
}
variable "database_name" {
description = "Name of database which need to backup"
}
variable "database_user" {
description = "Username with read access to database"
}
variable "database_pass" {
description = "Password of user with read access to database"
}
variable "cron_expression" {
description = "Cron expression for backup trigger (example: cron(0 5,8,11,14,17,20 * * ? *) - everyday every 3 hours from 8 to 20 o`clock)"
}