You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`name` - (Required) The unique name of the function.
57
+
58
+
~> **Important** Updates to `name` will recreate the function.
59
+
60
+
-`description` (Optional) The description of the function.
61
+
62
+
-`environment_variables` - The environment variables of the function.
63
+
64
+
-`privacy` - Privacy of the function. Can be either `private` or `public`. Read more on [authentication](https://developers.scaleway.com/en/products/functions/api/#authentication)
65
+
66
+
-`runtime` - Runtime of the function. Runtimes can be fetched using [specific route](https://developers.scaleway.com/en/products/functions/api/#get-f7de6a)
67
+
68
+
-`min_scale` - Minimum replicas for your function, defaults to 0, Note that a function is billed when it gets executed, and using a min_scale greater than 0 will cause your function container to run constantly.
69
+
70
+
-`max_scale` - Maximum replicas for your function (defaults to 20), our system will scale your functions automatically based on incoming workload, but will never scale the number of replicas above the configured max_scale.
71
+
72
+
-`memory_limit` - Memory limit in MB for your function, defaults to 128MB
73
+
74
+
-`handler` - Handler of the function. Depends on the runtime ([function guide](https://developers.scaleway.com/en/products/functions/api/#create-a-function))
75
+
76
+
-`timeout` - Holds the max duration (in seconds) the function is allowed for responding to a request
77
+
78
+
-`zip_file` - Location of the zip file to upload containing your function sources
79
+
80
+
-`zip_hash` - The hash of your source zip file, changing it will re-apply function. Can be any string, changing it will just trigger state change. You can use any terraform hash function to trigger a change on your zip change (see examples)
81
+
82
+
-`deploy` - Define if the function should be deployed, terraform will wait for function to be deployed. Function will get deployed if you change source zip
83
+
84
+
-`region` - (Defaults to [provider](../index.md#region)`region`). The [region](../guides/regions_and_zones.md#regions) in which the namespace should be created.
85
+
86
+
-`project_id` - (Defaults to [provider](../index.md#project_id)`project_id`) The ID of the project the namespace is associated with.
87
+
88
+
89
+
## Attributes Reference
90
+
91
+
In addition to all arguments above, the following attributes are exported:
92
+
93
+
-`id` - The ID of the function
94
+
-`organization_id` - The organization ID the function is associated with.
95
+
-`cpu_limit` - The CPU limit in mCPU for your function. More infos on resources [here](https://developers.scaleway.com/en/products/functions/api/#functions)
96
+
97
+
98
+
## Import
99
+
100
+
Functions can be imported using the `{region}/{id}`, e.g.
0 commit comments