Skip to content

Commit f7b2a3a

Browse files
authored
fix: Fixed opposite refresh_alias behavior in modules/alias (#372)
1 parent c7853f9 commit f7b2a3a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

examples/alias/main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ module "lambda_function" {
3434
create_async_event_config = true
3535
maximum_event_age_in_seconds = 100
3636

37-
provisioned_concurrent_executions = 1
38-
3937
attach_policies = true
4038
policies = [
4139
"arn:aws:iam::aws:policy/service-role/AWSLambdaSQSQueueExecutionRole",

modules/alias/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ resource "aws_lambda_alias" "no_refresh" {
2727
additional_version_weights = var.routing_additional_version_weights
2828
}
2929
}
30+
31+
lifecycle {
32+
ignore_changes = [function_version]
33+
}
3034
}
3135

3236
resource "aws_lambda_alias" "with_refresh" {
@@ -45,10 +49,6 @@ resource "aws_lambda_alias" "with_refresh" {
4549
additional_version_weights = var.routing_additional_version_weights
4650
}
4751
}
48-
49-
lifecycle {
50-
ignore_changes = [function_version]
51-
}
5252
}
5353

5454
resource "aws_lambda_function_event_invoke_config" "this" {

0 commit comments

Comments
 (0)