bland-father-19717
04/09/2023, 2:31 PMdeploy-awslambda
goal that will execute aws lambda update-function-code --function-name my-function --image-uri <image_ref>
by referencing its image ref after it is packaged + published in docker_image
target.
I have created a deployment_awslambda
target and confirmed that it works up to the point where I get the DockerFieldSet from the DockerImageTarget in dependencies.
After this I will need to run the DockerFieldSet.image_refs method, but it looks a bit complicated. helm deployment is what I am trying to reference, do I still have to implement these for this requirement?
https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/helm/util_rules/post_renderer.py#L72-L155
Or is there an easier way to get the image_refs from the DockerFieldSet?curved-television-6568
04/10/2023, 3:53 PMPublishDockerImageFieldSet
for the images in question (likely by invoking publish
for them.. not exactly sure what you need to do about that atm) so you can get the image names off of it (from .get_output_data()
bland-father-19717
04/10/2023, 4:02 PMcurved-television-6568
04/10/2023, 4:36 PMnames
field. https://github.com/pantsbuild/pants/pull/13292bland-father-19717
04/10/2023, 5:10 PMcurved-television-6568
04/10/2023, 5:37 PM