-
Notifications
You must be signed in to change notification settings - Fork 258
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
Can't deploy updated deployment package for Lambda with ACK #1550
Comments
Hi @timam can you provide similar yaml files to what you wanted to deploy? I would like to reproduce the same bugs using the same steps. |
Hey @a-hilaly I have created a helm chart with following yaml.
Next i have created a argocd pipeline. To deploy this helm chart. I supply all the helm values from a seperate (deployment) git repo. I was able to successfully create lambda with this approch. The problem is, when I update the value of artifact_tag in deployment git repo, argocd syncs it but the updated package doesn't get deployed.
I deleted and recreated the lambda, the issue was resolved however, i am still enable to deploy updated package with ack-lambda with mentioned approch. |
Same here. It seems like the lambda's code is getting updated just once when the function was created. BTW the environment variables of lambda are updated when you update the function manifest. |
/assign @Vandita2020 |
@a-hilaly: GitHub didn't allow me to assign the following users: Vandita2020. Note that only aws-controllers-k8s members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
Issues go stale after 90d of inactivity. |
Stale issues rot after 60d of inactivity. |
Issues go stale after 180d of inactivity. |
**Issue #** [#1550](aws-controllers-k8s/community#1550) **Description** This PR adds the feature to update the `Spec.Code.S3` variables. The issue arises as Lambda API does not keep record of `Spec.Code` variables, because of which ACK is not being able to compare the changes in the state for `Spec.Code` (ex: change in `Spec.Code.S3Key`) and thus fails to recognize the changes. Thus we have added a new field `Spec.Code.SHA256`, the user has to manually calculate the SHA256 for their code, they can do this by running this command `sha256sum filename.zip |cut -f1 -d\ | xxd -r -p | base64`. This field will then be compared with current SHA256 taken from `Status.CodeSHA256` and will determine if the update has been made for deployment package. **Acknowledgment** By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Closing this issue as the PR to support updating deployment package for Lambda functions in ACK is merged. |
/close |
@Vandita2020: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Describe the bug
I have created a lambda fuction with ACK. I am using a file from s3 to deploy lambda.
Now, I have a new deployment package and want ack to deploy the new package. Unfortunately, ack is giving me following error.
Steps to reproduce
Create deployment package and upload it to s3
Create a lambda fuction with ACK with newly updated deployment package to s3
Make any code change, package it and upload it to s3 with a seperate name
Update yaml with new deployment package name
Deploy changes
Expected outcome
It should update lambda package
Environment
1.23
EKS 1.23
Lambda
The text was updated successfully, but these errors were encountered: