File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ resource "aws_backup_plan" "main" {
105
105
}
106
106
}
107
107
108
+ depends_on = [aws_backup_vault . main ]
109
+
108
110
tags = var. tags
109
111
}
110
112
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ run "create_vault_with_custom_rules" {
41
41
}
42
42
43
43
assert {
44
- condition = length (aws_backup_vault. main . kms_key_arn ) >= 1
44
+ condition = length (aws_backup_vault. main [ 0 ] . kms_key_arn ) >= 1
45
45
error_message = " Expected Backup Plan to be encrypted by default AWS KMS key."
46
46
}
47
47
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ run "create_vault_with_predefined_rules" {
21
21
}
22
22
23
23
assert {
24
- condition = length (aws_backup_vault. main . kms_key_arn ) >= 1
24
+ condition = length (aws_backup_vault. main [ 0 ] . kms_key_arn ) >= 1
25
25
error_message = " Expected Backup Plan to be encrypted by default AWS KMS key."
26
26
}
27
27
@@ -46,7 +46,7 @@ run "create_vault_with_predefined_rules" {
46
46
}
47
47
48
48
assert {
49
- condition = length (aws_backup_vault. main . tags ) == 2
49
+ condition = length (aws_backup_vault. main [ 0 ] . tags ) == 2
50
50
error_message = " Expected Vault to have 2 tags."
51
51
}
52
52
You can’t perform that action at this time.
0 commit comments