@@ -284,13 +284,13 @@ resource "aws_cloudwatch_event_archive" "this" {
284
284
285
285
region = var. region
286
286
287
- name = lookup (each. value , " name" , each. key )
288
- event_source_arn = try (each. value [" event_source_arn" ], aws_cloudwatch_event_bus. this [0 ]. arn )
289
- kms_key_identifier = var. kms_key_identifier
287
+ name = lookup (each. value , " name" , each. key )
288
+ event_source_arn = try (each. value [" event_source_arn" ], aws_cloudwatch_event_bus. this [0 ]. arn )
290
289
291
- description = lookup (each. value , " description" , null )
292
- event_pattern = lookup (each. value , " event_pattern" , null )
293
- retention_days = lookup (each. value , " retention_days" , null )
290
+ description = lookup (each. value , " description" , null )
291
+ event_pattern = lookup (each. value , " event_pattern" , null )
292
+ retention_days = lookup (each. value , " retention_days" , null )
293
+ kms_key_identifier = lookup (each. value , " kms_key_identifier" , null )
294
294
}
295
295
296
296
resource "aws_cloudwatch_event_permission" "this" {
@@ -668,7 +668,7 @@ resource "aws_pipes_pipe" "this" {
668
668
source = each. value . source
669
669
target = each. value . target
670
670
671
- kms_key_identifier = var . kms_key_identifier
671
+ kms_key_identifier = lookup (each . value , " kms_key_identifier" , null )
672
672
description = lookup (each. value , " description" , null )
673
673
desired_state = lookup (each. value , " desired_state" , null )
674
674
0 commit comments