aws-controllers-k8s / community

AWS Controllers for Kubernetes (ACK) is a project enabling you to manage AWS services from Kubernetes
https://aws-controllers-k8s.github.io/community/
Apache License 2.0
2.43k stars 256 forks source link

Lambda controller: Publish new lambda function versions on Lambda change #2057

Open henryhcheung2 opened 7 months ago

henryhcheung2 commented 7 months ago

Is your feature request related to a problem? Lambdas created from ack controller do not publish new lambda versions whenever there is a lambda change. New Lambda version is published only on lambda creation and not on lambda change. Current Ack Lambda publish behavior documentation: https://aws-controllers-k8s.github.io/community/reference/lambda/v1alpha1/function/#:~:text=zip%20file%20archive.-,publish,-Optional

Describe the solution you'd like New Lambda version is published whenever there is a lambda change (for example, lambda container image URI changes causes a new lambda version to be published)

Describe alternatives you've considered Terraform supports this feature: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function#publish

Crossplane Lambdas also do as well.

a-hilaly commented 7 months ago

Hi @henryhcheung2 - currently we support publishing lambda functions using https://aws-controllers-k8s.github.io/community/reference/lambda/v1alpha1/version/ - however we could also add an annotation to support on-update publish calls. cc @Vandita2020

henryhcheung2 commented 7 months ago

That would be very helpful. thanks!