@@ -284,13 +284,13 @@ resource "aws_cloudwatch_event_archive" "this" {
284284
285285 region = var. region
286286
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 )
290289
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 )
294294}
295295
296296resource "aws_cloudwatch_event_permission" "this" {
@@ -668,7 +668,7 @@ resource "aws_pipes_pipe" "this" {
668668 source = each. value . source
669669 target = each. value . target
670670
671- kms_key_identifier = var . kms_key_identifier
671+ kms_key_identifier = lookup (each . value , " kms_key_identifier" , null )
672672 description = lookup (each. value , " description" , null )
673673 desired_state = lookup (each. value , " desired_state" , null )
674674
0 commit comments