Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Aug 27, 2024
1 parent 5d784c1 commit 747f9db
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions infrastructure/modules/services/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,13 @@ resource "aws_lambda_permission" "this" {
resource "aws_cloudwatch_event_rule" "this" {
name = var.identifier

event_pattern = <<EOF
{
"source": ["aws.ecs"],
"detail-type": ["ECS Task State Change"],
"detail": {
"clusterArn": ["${var.ecs_cluster.arn}"]
}
}
EOF
event_pattern = jsonencode({
source = ["aws.ecs"],
detail-type = ["ECS Task State Change"],
detail = {
clusterArn = [var.ecs_cluster.arn]
}
})
}

resource "aws_cloudwatch_event_target" "this" {
Expand Down

0 comments on commit 747f9db

Please sign in to comment.