Open JonathanWoollett-Light opened 4 months ago
Updating to specify as project_id
appears to have fixed the problem with the namespace.
Documentation should be fixed for this
Although outputs a new error with an invalid runtime. rust178
is documented as a valid runtime at https://www.scaleway.com/en/developers/api/serverless-functions/#path-functions-create-a-new-function. Updating to rust165
appears to fix this.
Again documentation should be fixed for this
It then outputs the function is wrong and must only consist of lower case alphanumeric characters. Updating mainFunction
-> main-function
fixes this.
Again documentation should be fixed for this
Now I'm trying to figure out how to set the function code since this create an empty and thus useless function.
@JonathanWoollett-Light can you retry with the latest version of the provider which is v1.14?
From the import line, I notice you are using an old version:
import lbrlabs_pulumi_scaleway as scaleway
Keep in mind that the ownership changed and some of the code imports need to be changed:
I have a minimal Pulumi project:
I was able to deploy the bucket running
pulumi up
, now I wanted to test setting a basic function.Following https://www.pulumi.com/registry/packages/scaleway/api-docs/function/ I added:
Updating a couple values to use a Rust handler.
This resulted in the output:
The Rust handler is in
handler.rs
as (copied from https://www.scaleway.com/en/docs/serverless/functions/reference-content/code-examples/#hello-world-in-rust):