I have a Lambda deployed on AWS. My Lambda is deployed uses a container to run my code. Whenever after we deploy a new image, we have to manually copy paste the URL in Lambda's configuration. Even if in ECR latest image has the URI which is already configured in Lambda, Lambda used the image from when configuration was last manually done. I was wondering if there is a way to automatically have lambda use the latest image that is deployed in ECR ?
Things I have tried:
- Keeping the tags and image name same during deployment, so the URI of image stays the same. I then use that URI to configure my Lambda.
- Used "latest" as a tag for my image.
Note: Image is being pushed to ECR by Bitbucket.