Skip to content

fix(ci): stabilize production lambda runtime verification#255

Merged
mottych merged 1 commit intomasterfrom
hotfix/CORS-issues
Mar 4, 2026
Merged

fix(ci): stabilize production lambda runtime verification#255
mottych merged 1 commit intomasterfrom
hotfix/CORS-issues

Conversation

@mottych
Copy link
Owner

@mottych mottych commented Mar 4, 2026

Summary

  • fix production workflow Lambda state check to run from coaching/pulumi
  • add retry polling for State=Active and LastUpdateStatus=Successful
  • keep deployment blocked only when Lambda remains unhealthy

Test plan

  • previous failure reproduced in run 22692989830
  • merge this PR to trigger Deploy Production
  • verify production run completes (deploy + smoke tests)

Run Lambda state validation from the Pulumi project directory and poll until the function reaches Active with a successful update status. This prevents false failures and correctly blocks only unhealthy production deploys.

Made-with: Cursor
@mottych mottych merged commit 696f0b5 into master Mar 4, 2026
2 checks passed
@pulumi
Copy link

pulumi bot commented Mar 4, 2026

🍹 The Update for mottych/purposepath-coaching-api/preprod (at 9c0435e) was successful.

✨ Neo Explanation

This is a routine code deployment to preprod — a new Docker image for the coaching API has been built and the Lambda function is being updated to run it.

Root Cause Analysis

A new version of the coaching API application has been built and is being deployed to the preprod environment. The Docker image was rebuilt with a new build timestamp, producing a new image digest, which triggers an update to the Lambda function to point to this latest image.

Dependency Chain

A new Docker image was built from the coaching service's Dockerfile → the image is pushed to ECR with a new content digest → the Lambda function's imageUri is updated to reference the new image digest, completing the deployment.

Risk analysis

No risky changes detected.

Resource Changes

    Name            Type                          Operation
~   coaching-image  docker:index/image:Image      update
~   coaching-api    aws:lambda/function:Function  update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant