File tree Expand file tree Collapse file tree 4 files changed +10
-65
lines changed Expand file tree Collapse file tree 4 files changed +10
-65
lines changed Original file line number Diff line number Diff line change @@ -130,11 +130,6 @@ variable "alarm_efs_credits_low_threshold" {
130
130
default = 1000000000000
131
131
}
132
132
133
- variable "expire_backup_efs" {
134
- default = 0
135
- description = " Number of days the backup will be expired"
136
- }
137
-
138
133
variable "target_group_arns" {
139
134
default = []
140
135
type = list (string )
@@ -188,3 +183,9 @@ variable "schedule_cron_stop" {
188
183
default = " "
189
184
description = " Cron expression to define when to trigger a stop of the auto-scaling group. E.g. '0 10 * * *' to stop at 10am GMT time"
190
185
}
186
+
187
+ variable "backup" {
188
+ type = string
189
+ default = " true"
190
+ description = " Assing a backup tag to efs resource - Backup will be performed by AWS Backup"
191
+ }
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ resource "aws_cloudwatch_metric_alarm" "alb_400_errors" {
43
43
}
44
44
45
45
resource "aws_cloudwatch_metric_alarm" "alb_latency" {
46
- count = var. alb && length (var. alarm_sns_topics ) > 0 && var. alarm_alb_latency_anomaly_threshold > 0 ? 1 : 0
47
- alarm_name = " ${ data . aws_iam_account_alias . current . account_alias } -ecs-${ var . name } -alb-latency"
46
+ count = var. alb && length (var. alarm_sns_topics ) > 0 && var. alarm_alb_latency_anomaly_threshold > 0 ? 1 : 0
47
+ alarm_name = " ${ data . aws_iam_account_alias . current . account_alias } -ecs-${ var . name } -alb-latency"
48
48
# alarm_name = "${data.aws_iam_account_alias.current.account_alias}-ecs-${var.name}-latency"
49
49
comparison_operator = " GreaterThanUpperThreshold"
50
50
evaluation_periods = " 2"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ resource "aws_efs_file_system" "ecs" {
3
3
encrypted = true
4
4
5
5
tags = {
6
- Name = " ecs-${ var . name } "
6
+ Name = " ecs-${ var . name } "
7
+ Backup = var.backup
7
8
}
8
9
9
10
# lifecycle {
You can’t perform that action at this time.
0 commit comments