@@ -33,7 +33,8 @@ module "eventbridge" {
33
33
}
34
34
35
35
api_destinations = {
36
- smee = { # This key should match the key inside "connections"
36
+ smee = {
37
+ # This key should match the key inside "connections"
37
38
description = " my smee endpoint"
38
39
invocation_endpoint = " https://smee.io/6hx6fuQaVUKLfALn"
39
40
http_method = " POST"
@@ -47,7 +48,8 @@ module "eventbridge" {
47
48
source = aws_sqs_queue.source.arn
48
49
target = aws_sqs_queue.target.arn
49
50
50
- enrichment = " smee" # This key should match the key inside "api_destinations"
51
+ enrichment = " smee"
52
+ # This key should match the key inside "api_destinations"
51
53
enrichment_parameters = {
52
54
input_template = jsonencode ({ input : " yes" })
53
55
@@ -325,6 +327,16 @@ module "eventbridge" {
325
327
}
326
328
}
327
329
330
+ custom_kms_key = {
331
+ source = aws_sqs_queue.source.arn
332
+ target = aws_sqs_queue.target.arn
333
+ kms_key_identifier = module.kms.key_id
334
+
335
+ tags = {
336
+ Pipe = " minimal"
337
+ }
338
+ }
339
+
328
340
# Minimal with IAM role created outside of the module
329
341
minimal_external_role = {
330
342
create_role = false
@@ -350,25 +362,6 @@ module "eventbridge" {
350
362
}
351
363
}
352
364
353
- module "eventbridge_pipe_only" {
354
- source = " ../../"
355
-
356
- create_bus = false
357
-
358
- pipes = {
359
- " pipe-for-existing-bus" = {
360
- source = aws_sqs_queue.source.arn
361
- target = aws_sqs_queue.target.arn
362
- kms_key_identifier = module.kms.key_id
363
- }
364
-
365
- tags = {
366
- Pipe = " pipe-for-existing-bus"
367
- }
368
- }
369
- depends_on = [aws_cloudwatch_event_bus . existing_bus ]
370
- }
371
-
372
365
# #################
373
366
# Extra resources
374
367
# #################
@@ -377,14 +370,6 @@ resource "random_pet" "this" {
377
370
length = 2
378
371
}
379
372
380
- # ##############################
381
- # Event Bus
382
- # ##############################
383
-
384
- resource "aws_cloudwatch_event_bus" "existing_bus" {
385
- name = " ${ random_pet . this . id } -existing-bus"
386
- }
387
-
388
373
# ##############################
389
374
# API Destination / Connection
390
375
# ##############################
0 commit comments