-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix: serverless deployment imageTag and force deployment, using extraHash. #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes serverless deployment issues by ensuring Lambda functions are properly redeployed when the image tag changes. The solution adds an extraHash parameter that forces AWS CDK to recognize changes in the image tag and trigger redeployment.
- Adds
extraHashparameter to force Lambda function redeployment when image tag changes
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|



PR Type
Bug fix, Enhancement
Description
Add
extraHashparameter to force CDK deployment when imageTag changesEnsures Docker image rebuild triggers on imageTag updates
Prevents stale image deployments in serverless Lambda stack
Diagram Walkthrough
File Walkthrough
cdk-app-stack.ts
Add extraHash to force Docker image rebuildserverless/cdk-app/lib/cdk-app-stack.ts
extraHashproperty toDockerImageAssetconfigurationextraHashvalue toprops?.imageTag || "latest-lambda"to matchbuildArgs
changes