-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
eventbridge.tf
24 lines (19 loc) · 896 Bytes
/
eventbridge.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
////////////////////////////////////////////////////////[ EVENTBRIDGE RULES ]/////////////////////////////////////////////
# # ---------------------------------------------------------------------------------------------------------------------#
# Create EventBridge service role
# # ---------------------------------------------------------------------------------------------------------------------#
data "aws_iam_policy_document" "eventbridge_assume_role" {
statement {
effect = "Allow"
actions = ["sts:AssumeRole"]
principals {
type = "Service"
identifiers = ["events.amazonaws.com"]
}
}
}
resource "aws_iam_role" "eventbridge_service_role" {
name = "${local.project}-EventBridgeServiceRole"
description = "Provides EventBridge manage events on your behalf."
assume_role_policy = data.aws_iam_policy_document.eventbridge_assume_role.json
}