Resolved: How to add configure image name as variable in deployment file in kubernetes


I am trying to create a codepipeline in aws , I am able to build my code , push image to ECR as well. then I want to rename the image in my deployment file that I have in git repo so that new deployment is created with the new image version.
Also If I keep same image then how will i deploy the deployment file in deploy stage in Kubernetes using aws codepipeline


If you are trying to deploy different versions of the app in different environments – you can use kustomize. You can use codepipeline variables to update the values.

If you have better answer, please add a comment about this, thank you!