Skip to content

Commit

Permalink
Merge pull request philips-labs#1623 from philips-labs/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
npalm authored Jan 13, 2022
2 parents e90eece + c9c7c69 commit a4f9c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/runners/pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ data "aws_iam_policy_document" "lambda_assume_role_policy" {
resource "aws_cloudwatch_event_rule" "pool" {
count = length(var.config.pool)

name = "${var.config.environment}-pool-rule"
name = "${var.config.environment}-pool-${count.index}-rule"
schedule_expression = var.config.pool[count.index].schedule_expression
tags = var.config.tags
}
Expand All @@ -118,7 +118,7 @@ resource "aws_cloudwatch_event_target" "pool" {
resource "aws_lambda_permission" "pool" {
count = length(var.config.pool)

statement_id = "AllowExecutionFromCloudWatch"
statement_id = "AllowExecutionFromCloudWatch-${count.index}"
action = "lambda:InvokeFunction"
function_name = aws_lambda_function.pool.function_name
principal = "events.amazonaws.com"
Expand Down

0 comments on commit a4f9c98

Please sign in to comment.