Skip to content

Commit

Permalink
BFD-3295: Address Terraform Issue with Cloudwatch Event Rule Name too…
Browse files Browse the repository at this point in the history
… long (#2204)
  • Loading branch information
brandoncruz3 authored Feb 20, 2024
1 parent 1367f03 commit 355b0db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ops/terraform/services/server/server-regression/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ resource "aws_cloudwatch_event_rule" "spice_refresh_event_rule" {
]
}
)
name = "${local.spice_trigger_lambda_name}-on-glue-crawler-success"
name = local.spice_trigger_lambda_name
}

resource "aws_cloudwatch_event_target" "spice_refresh_event_target" {
Expand All @@ -206,7 +206,7 @@ resource "aws_cloudwatch_event_target" "spice_refresh_event_target" {
}

resource "aws_lambda_permission" "allow_event_bridge_access" {
statement_id = "${local.spice_trigger_lambda_name}-on-glue-crawler-success"
statement_id = local.spice_trigger_lambda_name
action = "lambda:InvokeFunction"
function_name = aws_lambda_function.spice_refresh_trigger.arn
principal = "events.amazonaws.com"
Expand Down

0 comments on commit 355b0db

Please sign in to comment.