File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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" {
9999resource "aws_cloudwatch_event_rule" "pool" {
100100 count = length (var. config . pool )
101101
102- name = " ${ var . config . environment } -pool-rule"
102+ name = " ${ var . config . environment } -pool-${ count . index } - rule"
103103 schedule_expression = var. config . pool [count . index ]. schedule_expression
104104 tags = var. config . tags
105105}
@@ -118,7 +118,7 @@ resource "aws_cloudwatch_event_target" "pool" {
118118resource "aws_lambda_permission" "pool" {
119119 count = length (var. config . pool )
120120
121- statement_id = " AllowExecutionFromCloudWatch"
121+ statement_id = " AllowExecutionFromCloudWatch- ${ count . index } "
122122 action = " lambda:InvokeFunction"
123123 function_name = aws_lambda_function. pool . function_name
124124 principal = " events.amazonaws.com"
You can’t perform that action at this time.
0 commit comments