-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not defining a global provider.runtime breaks dockerizePip: true #781
Comments
for those like me that assume that no comments means no solution, the OP has given the solution (thankyou):
could this issue be specific to Python 3.9? |
First of all, I am sorry that the solution was not that clear, I'll edit the issue. |
Also broken with 3.11. I was defining the runtime version per-function. |
Similar to me – if I didn't specify a provider, it would fail. Even if the functions had a specific runtime. |
I ran into this again – for my surprise, I forgot about it and just found that I previously commented. Still think this should be on the function level, rather the provider level. |
Hey @duncanista 👋 I totally missed this issue the first time around. What version of the plugin are you using right now? I've observed some weird behavior with |
Hey @pgrzesik, I'm using the latest version of both the plugin and the framework. And yes, when you don't provide a What happens specifically is that the public image to be grabbed is found as Let me know if you need more information! |
Are you certain it's a bug?
Are you using the latest plugin release?
Is there an existing issue for this?
Issue description
We have a project that uses different runtimes per function:
function1
:docker
function2
:python3.9
Because of this, in the
provider
section, we did not define aruntime
setting, as we did this on an individualfunction
level.(
package.individually
was set totrue
)When deploying this stack it caused no issue at all, untill we needed to set the
dockerizePip
totrue
Doing this caused the following error to appear:
Tracing back the error caused me to look where
public.ecr.aws/sam/build-
was used in the repository.It led me here
As in our usecase
serverless.service.provider.runtime
was not set on a project lvl, it caused the code to replace this with the stringundefined
.This image ofcourse does not exist, causing the docker command to crash out.
Setting the
provider.runtime
string topython3.9
fixes this issue.Service configuration (serverless.yml) content
Command name and used flags
serverless deploy --verbose --region eu-west-1 --stage dev
Command output
Environment information
Solution/ workaround
Under the provider section, define your runtime (like
python 3,9
)The text was updated successfully, but these errors were encountered: