Skip to content

Commit

Permalink
Merge pull request #4 from HotelEngine/replace_triggerd_by
Browse files Browse the repository at this point in the history
fix: Hanlde IAM changes:
  • Loading branch information
elliottohara authored Jun 20, 2024
2 parents 251c608 + 63dfb2c commit 8687749
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ locals {
resource "aws_lambda_function" "lambda" {
count = var.ignore_external_function_updates ? 0 : 1
depends_on = [aws_cloudwatch_log_group.lambda]

lifecycle {
replace_triggered_by = [aws_iam_role.lambda]
}
architectures = var.architectures
description = var.description
filename = var.filename
Expand Down

0 comments on commit 8687749

Please sign in to comment.