File tree Expand file tree Collapse file tree
terraform/modules/eventbridge Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- resource "aws_eventbridge_rule " "module_event" {
2- name = " ${ var . resource_prefix } - ${ var . eventbridge_name } "
1+ resource "aws_cloudwatch_event_rule " "module_event" {
2+ name = var. eventbridge_name
33 schedule_expression = var. schedule_expression
44}
55
6- resource "aws_eventbridge_target " "module_target" {
7- rule = aws_eventbridge_rule . module_event . name
6+ resource "aws_cloudwatch_event_target " "module_target" {
7+ rule = aws_cloudwatch_event_rule . module_event . name
88 arn = var. target_arn
9- target_id = " ${ var . target_type } -${ aws_eventbridge_rule . module_event . name } "
10-
11- /* input_transformer {
12- input_paths = var.input_paths
13- input_template = var.input
14- }*/
9+ target_id = " ${ var . target_type } -${ aws_cloudwatch_event_rule . module_event . name } "
1510
1611 dynamic "ecs_parameters" {
1712 for_each = local. ecs_conditions ? [1 ] : []
@@ -20,9 +15,9 @@ resource "aws_eventbridge_target" "module_target" {
2015 task_count = 1
2116 launch_type = " FARGATE"
2217 network_configuration {
23- ecs_subnet_ids = var. private_subnet_ids
24- ecs_security_groups = var. ecs_security_groups
25- assign_public_ip = var. assign_public_ip
18+ subnets = var. private_subnet_ids
19+ security_groups = var. ecs_security_groups
20+ assign_public_ip = var. assign_public_ip
2621 }
2722 }
2823 }
@@ -34,3 +29,4 @@ resource "aws_eventbridge_target" "module_target" {
3429 }
3530 }
3631}
32+
You can’t perform that action at this time.
0 commit comments