Skip to content

Commit

Permalink
allow eventbridge scheduler to assume lambda role
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyek committed Apr 1, 2024
1 parent 3ac76a2 commit 49bea60
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions infra/modules/iam/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
data "aws_iam_policy_document" "assume_role" {
statement {
principals {
type = "Service"
identifiers = ["lambda.amazonaws.com"]
type = "Service"
identifiers = [
"lambda.amazonaws.com",
"scheduler.amazonaws.com" # for eventbridge scheduler to assume this role and exec the fn
]
}
actions = ["sts:AssumeRole"]
effect = "Allow"
Expand Down

0 comments on commit 49bea60

Please sign in to comment.