Closed Kremzeeq closed 3 months ago
It should be image: name:
, check out the docs here: https://bref.sh/docs/deploy/docker#deployment
Hi @mnapoli , Maybe I should have been clearer about my use case.
The pattern you've pointed me to is one where you want to reference the path to a Dockerfile and trigger the 'Build the Docker images according to their specified path' as per the link you've shared.
With my use-case, I just want to simply reference the ECR image URI without triggering the 'Invalid configuration warning'. In such a case, the docker image would already have been built and pushed to AWS ECR. I've managed to now achieve this with:
functions:
your-lambda-name:
image:
uri: ${param:imageURI}
Ah sorry about the misunderstanding, glad to know it's fixed!
Description:
With the following configuration in my serverless.yml, I encounter "[!] Invalid configuration encountered at 'functions.app.image': unsupported string format" when I attempt to deloy. The deploy succeeds, but it would be good to have more confidence with regard to this.
serverless.yml extract:
I'm raising this as a bug, on the basis that the
${param:imageURI}
in the provided case is provided and the lambda successfully deploys and works. Here are more details with regard to the deploy:Related docs are here I think I am providing the image reference correctly according to this. Otherwise, please advise.
How to reproduce:
Serverless version: 4.1.7 With regard to
${param:targetApi1}
, this is set to${{ secrets.aws-account-id }}.dkr.ecr.${{ secrets.aws-region }}.amazonaws.com/${{ vars.APP }}:latest
(as an example and the values are populated).I pass this as a parameter in a GitHub actions workflow e.g. as ...