File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ data "aws_iam_policy_document" "lambda_assume_role_policy" {
99
99
resource "aws_cloudwatch_event_rule" "pool" {
100
100
count = length (var. config . pool )
101
101
102
- name = " ${ var . config . environment } -pool-rule"
102
+ name = " ${ var . config . environment } -pool-${ count . index } - rule"
103
103
schedule_expression = var. config . pool [count . index ]. schedule_expression
104
104
tags = var. config . tags
105
105
}
@@ -118,7 +118,7 @@ resource "aws_cloudwatch_event_target" "pool" {
118
118
resource "aws_lambda_permission" "pool" {
119
119
count = length (var. config . pool )
120
120
121
- statement_id = " AllowExecutionFromCloudWatch"
121
+ statement_id = " AllowExecutionFromCloudWatch- ${ count . index } "
122
122
action = " lambda:InvokeFunction"
123
123
function_name = aws_lambda_function. pool . function_name
124
124
principal = " events.amazonaws.com"
You can’t perform that action at this time.
0 commit comments