File tree 2 files changed +7
-2
lines changed
modules/webhook/eventbridge
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ module "runners" {
26
26
Project = " ProjectX"
27
27
}
28
28
29
+ eventbridge = {
30
+ enable = true
31
+ }
32
+ enable_workflow_job_events_queue = true
33
+
29
34
github_app = {
30
35
key_base64 = var.github_app.key_base64
31
36
id = var.github_app.id
Original file line number Diff line number Diff line change @@ -144,10 +144,10 @@ resource "aws_iam_role_policy" "dispatcher_xray" {
144
144
role = aws_iam_role. dispatcher_lambda . name
145
145
}
146
146
147
- resource "aws_iam_role_policy" "webhook_workflow_job_sqs " {
147
+ resource "aws_iam_role_policy" "dispatcher_workflow_job_sqs " {
148
148
count = var. config . sqs_workflow_job_queue != null ? 1 : 0
149
149
name = " publish-workflow-job-sqs-policy"
150
- role = aws_iam_role. webhook_lambda . name
150
+ role = aws_iam_role. dispatcher_lambda . name
151
151
152
152
policy = templatefile (" ${ path . module } /../policies/lambda-publish-sqs-policy.json" , {
153
153
sqs_resource_arns = jsonencode ([var . config . sqs_workflow_job_queue . arn ])
You can’t perform that action at this time.
0 commit comments