Skip to content

Commit 2c37819

Browse files
committed
fix: depends_on = [aws_lambda_alias.live]
1 parent 551ff5e commit 2c37819

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

infra/modules/aws/lambda/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ resource "aws_appautoscaling_target" "pc_target" {
116116
resource_id = "function:${local.lambda_name}:${var.environment}"
117117
scalable_dimension = "lambda:function:ProvisionedConcurrency"
118118
service_namespace = "lambda"
119+
120+
depends_on = [aws_lambda_alias.live]
119121
}
120122

121123
resource "aws_appautoscaling_policy" "pc_policy" {

0 commit comments

Comments
 (0)