Skip to content

Commit

Permalink
fix: increase Lambda timeout to 900s to cover CodeBuild poll window
Browse files Browse the repository at this point in the history
Lambda was set to 300s but poll_codebuild_build loops for up to 12 min (720s).
Lambda would be killed by AWS before it could report back to CloudFormation.
900s gives a ~180s buffer beyond the poll window.
  • Loading branch information
Your Name committed Apr 6, 2026
1 parent aee6987 commit 8310ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module "eks_terragrunt_repo_generator" {
lambda_config = {
image_uri = "${data.aws_caller_identity.current.account_id}.dkr.ecr.${data.aws_region.current.name}.amazonaws.com/eks-terragrunt-repo-generator/lambda:${var.image_tag}"
memory_size = 512
timeout = 300
timeout = 900 # must exceed CodeBuild poll window (12 min = 720s)

# VPC configuration (required for GitHub Enterprise access)
vpc_config = var.enable_vpc ? {
Expand Down

0 comments on commit 8310ee1

Please sign in to comment.