-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
106 lines (94 loc) · 4.44 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Variables for providers used in this module
variable "aws_region" { default = "eu-west-2" }
variable "aws_cross_region" { default = "eu-west-1" }
variable "aws_profile" {}
variable "zone" { default = "adbennis.example" }
# TAG and name
variable "product_code_tag" {}
variable "inventory_code_tag" {}
variable "environment_tag" {}
variable "account_tag" {}
variable "product_name" {}
variable "resource_creator" {}
# RDS Instance Agruments
variable "vrds_allocated_storage" {}
variable "vrds_engine" { default = "postgres" }
variable "vrds_engine_version" {}
variable "vrds_identifier" {}
variable "vrds_instance_class" {}
variable "vrds_storage_type" { default = "gp2" }
variable "vrds_final_snapshot_identifier" {}
variable "vrds_skip_final_snapshot" { default = false }
variable "vrds_snapshot_identifier" {}
variable "vrds_copy_tags_to_snapshot" { default = true }
variable "db_password" {}
variable "vrds_username" { default = "admin" }
variable "vrds_backup_retention_period" { default = 7 }
variable "vrds_backup_window" { default = "07:30-08:00" }
variable "vrds_iops" {}
variable "vrds_maintenance_window" { default = "wed:09:00-wed:10:00" }
variable "vrds_multi_az" { default = true }
variable "vrds_port" { default = 5432 }
variable "vrds_storage_encrypted" {}
variable "vrds_apply_immediately" { default = true }
variable "vrds_replicate_source_db" {}
variable "vrds_auto_minor_version_upgrade" { default = false }
variable "vrds_allow_major_version_upgrade" { default = false }
variable "db_family" {}
variable "db_name" {}
variable "vrds_custom_param_group" { default = "false" }
variable "vrds_param_group_family" { default = "default.postgres10.4" }
variable "vrds_subnets_dev" {}
variable "vrds_vpc_id" {}
variable "vrds_perf_insights" { default = "false"}
variable "vrds_enabled_cloudwatch_logs_exports" { default = [] }
# DMS specific variables
variable "dms_allocated_storage" {}
variable "dms_engine_version" {}
variable "dms_replication_instance_class" {}
variable "dms_subnet" {}
# RDS Reader Instance Arguments
variable "vrds_ro_count" {}
variable "vrds_instance_class_ro" {}
variable "vrds_port_ro" { default = 1521 }
variable "vrds_storage_type_ro" { default = "gp2" }
variable "vrds_iops_ro" {}
variable "vrds_apply_immediately_ro" { default = true }
variable "vrds_auto_minor_version_upgrade_ro" { default = false }
variable "vrds_copy_tags_to_snapshot_ro" { default = true }
# PgSQL Parameter Group Arguments
variable "param_max_connections" { default = "LEAST({DBInstanceClassMemory/9531392},5000)" }
variable "param_ro_max_connections" { default = "LEAST({DBInstanceClassMemory/9531392},5000)" }
# Monitoring / Alerting Arguments
variable "alarm_sns_topic" {default = ""}
variable "es_instance_event_categories" {default = "availability,failure,failover,maintenance"}
variable "es_ro_instance_event_categories" {default = "availability,failure,failover,maintenance"}
variable "es_rds_event_sns_topic" { default = "dummy" }
variable "es_cr_rds_event_sns_topic" { default = "dummy" }
variable "es_rds_event_categories" { default = "failure" }
variable "es_ro_rds_event_categories" { default = "failure" }
variable "es_cr_rds_event_categories" { default = "failure" }
variable "cw_alarms" {default = "false"}
variable "cw_readiops_thresholds" {default = "2000000"}
variable "cw_readiops_evaluation_period" {default = "1"}
variable "cw_writeiops_thresholds" {default = "1000000"}
variable "cw_writeiops_evaluation_period" {default = "1"}
variable "cw_conn_thresholds" {default = "80"}
variable "cw_conn_evaluation_period" {default = "5"}
variable "cw_cpu_thresholds" {default = "80"}
variable "cw_cpu_evaluation_period" {default = "5"}
variable "cw_free_storage_thresholds" {default = "10"}
variable "cw_free_storage_evaluation_period" {default = "3"}
variable "cw_ro_readiops_thresholds" {default = "2000000"}
variable "cw_ro_readiops_evaluation_period" {default = "1"}
variable "cw_ro_writeiops_thresholds" {default = "1000000"}
variable "cw_ro_writeiops_evaluation_period" {default = "1"}
variable "cw_ro_conn_thresholds" {default = "80"}
variable "cw_ro_conn_evaluation_period" {default = "5"}
variable "cw_ro_cpu_thresholds" {default = "80"}
variable "cw_ro_cpu_evaluation_period" {default = "5"}
variable "cw_ro_free_storage_thresholds" {default = "10"}
variable "cw_ro_free_storage_evaluation_period" {default = "3"}
# Enhanced Monitoring
variable "vrds_enhanced_monitoring_interval" { default = "0" }
variable "vrds_monitoring_role_arn" { default = "" }