Skip to content

Commit bb2186b

Browse files
authored
fix: Move default resources for events for AWS Batch service integration (#44)
1 parent a5494e6 commit bb2186b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/complete/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ module "step_function" {
4646

4747
service_integrations = {
4848

49+
batch_Sync = {
50+
events = true
51+
}
52+
4953
dynamodb = {
5054
dynamodb = ["arn:aws:dynamodb:eu-west-1:052212379155:table/Test"]
5155
}

locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ locals {
210210
"events:PutRule",
211211
"events:DescribeRule"
212212
]
213+
default_resources = ["arn:aws:events:${local.aws_region}:${data.aws_caller_identity.current.account_id}:rule/StepFunctionsGetEventsForBatchJobsRule"]
213214
}
214-
default_resources = ["arn:aws:events:${local.aws_region}:${data.aws_caller_identity.current.account_id}:rule/StepFunctionsGetEventsForBatchJobsRule"]
215215
}
216216

217217
batch_WaitForTaskToken = {

0 commit comments

Comments
 (0)