Skip to content

Commit a4f9c98

Browse files
authored
Merge pull request #1623 from philips-labs/develop
Release
2 parents e90eece + c9c7c69 commit a4f9c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/runners/pool/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ data "aws_iam_policy_document" "lambda_assume_role_policy" {
9999
resource "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" {
118118
resource "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"

0 commit comments

Comments
 (0)