Skip to content

Commit

Permalink
fix(DMVP-5181): fix sqs policy
Browse files Browse the repository at this point in the history
  • Loading branch information
SarhadMeta committed Dec 25, 2024
1 parent 8c1e90c commit 97c2734
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ data "aws_iam_policy_document" "eventbridge_to_sqs" {
condition {
test = "ArnEquals"
variable = "aws:SourceArn"
values = [module.eventbridge.eventbridge_bus_arn]
values = [for key, value in module.eventbridge.eventbridge_rule_arns : value]
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions tests/rules-targets-setup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ module "mediaconvert_queue" {

rules_targets = [
{
rule_name = "rule1"
target_name = "target1"
event_pattern = jsonencode({
rule_name = "rule1"
target_name = "target1"
event_pattern = <<EOF
{
"source" : ["aws.mediaconvert"],
"detail-type" : ["MediaConvert Job State Change"],
"detail" : {
"queue" : [module.mediaconvert_queue.mediaconvert_queue_arn],
"queue" : ["${module.mediaconvert_queue.mediaconvert_queue_arn}"],
"userMetadata" : {
"env" : ["DEV"]
}
}
})
}
EOF
}
]

Expand Down

0 comments on commit 97c2734

Please sign in to comment.