Skip to content

Commit

Permalink
Ignore attributes that are updated by lambda-deployer (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayMetchev authored Apr 26, 2024
1 parent 2e3dc95 commit f6bee34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,17 @@ resource "aws_lambda_function" "this" {
aws_iam_role_policy_attachment.vpc,
aws_iam_role_policy_attachment.tracing,
]

lifecycle {
ignore_changes = [
layers,
description,
memory_size,
timeout,
environment,
snap_start,
]
}
}

resource "aws_lambda_layer_version" "this" {
Expand Down
2 changes: 1 addition & 1 deletion modules/alias/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "aws_lambda_alias" "no_refresh" {
}

lifecycle {
ignore_changes = [function_version]
ignore_changes = [function_version, description]
}
}

Expand Down

0 comments on commit f6bee34

Please sign in to comment.