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
Copy file name to clipboardexpand all lines: docs/data-sources/container.md
+17-23
Original file line number
Diff line number
Diff line change
@@ -35,32 +35,33 @@ resource scaleway_container main {
35
35
max_concurrency = 80
36
36
privacy = "private"
37
37
protocol = "h2c"
38
-
redeploy = true
38
+
deploy = true
39
39
40
40
environment_variables = {
41
41
"foo" = "var"
42
42
}
43
43
}
44
44
```
45
45
46
-
47
46
## Arguments Reference
48
47
49
-
The following arguments are supported:
48
+
The following arguments are required:
49
+
50
+
-`name` - (Required) The unique name of the container name.
50
51
51
-
-`name` - (Required) The unique name of the container namespace.
52
+
-`namespace_id` - (Required) The container namespace ID of the container.
52
53
53
54
~> **Important** Updates to `name` will recreate the container.
54
55
55
-
-`description` (Optional) The description of the container.
56
+
## Attributes Reference
56
57
57
-
-`namespace_id` - (Required) The container namespace ID of the container.
58
+
In addition to all arguments above, the following attributes are exported:
58
59
59
-
-`region` - (Defaults to [provider](../index.md#region)`region`). The [region](../guides/regions_and_zones.md#regions) in which the namespace should be created.
60
+
-`id` - The ID of the container
60
61
61
-
-`project_id` - (Defaults to [provider](../index.md#project_id)`project_id`) The ID of the project the namespace is associated with.
62
+
-`description`The description of the container.
62
63
63
-
-`environment_variables` - The environment variables of the container.
64
+
-`environment_variables` - The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
64
65
65
66
-`min_scale` - The minimum of running container instances continuously. Defaults to 0.
66
67
@@ -72,31 +73,24 @@ The following arguments are supported:
72
73
73
74
-`timeout` - The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
74
75
75
-
-`privacy` - The privacy type access.
76
+
-`privacy` - The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8).
76
77
77
78
-`registry_image` - The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
78
79
79
-
-`max_concurrency` - The maximum the number of simultaneous requests your container can handle at the same time. Defaults to 50.
80
+
-`max_concurrency` - The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
80
81
81
82
-`domain_name` - The container domain name.
82
83
83
-
-`protocol` - The communication protocol. Defaults to http1.
84
+
-`protocol` - The communication [protocol](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
84
85
85
86
-`port` - The port to expose the container. Defaults to 8080.
86
87
87
-
-`redeploy` - Allow deploy container.
88
-
88
+
-`deploy` - Boolean indicating whether the container is on a production environment.
89
89
90
-
## Attributes Reference
91
-
92
-
In addition to all arguments above, the following attributes are exported:
93
-
94
-
-`id` - The ID of the container
95
-
-`organization_id` - The organization ID the container is associated with.
96
90
-`status` - The container status.
91
+
97
92
-`cron_status` - The cron status of the container.
93
+
98
94
-`error_message` - The error message of the container.
-`region` - (Defaults to [provider](../index.md#region)`region`) The [region](../guides/regions_and_zones.md#regions) in which the container was created.
Copy file name to clipboardexpand all lines: docs/resources/container.md
+67-32
Original file line number
Diff line number
Diff line change
@@ -38,62 +38,97 @@ data "scaleway_container" "by_id" {
38
38
}
39
39
```
40
40
41
-
## Argument Reference
41
+
## Arguments Reference
42
42
43
-
-`name` - (Optional) The container name.
44
-
Only one of `name` and `container_id` should be specified.
43
+
The following arguments are required:
45
44
46
-
-`container_id` - (Optional) The container id.
47
-
-`namespace_id` - (Required) The container namespace id
48
-
Only one of `name` and `container_id` should be specified.
49
-
-`region` - (Defaults to [provider](../index.md#region)`region`) The [region](../guides/regions_and_zones.md#regions) in which the container exists.
50
-
-`project_id` - (Defaults to [provider](../index.md#project_id)`project_id`) The ID of the project the namespace is associated with.
45
+
-`name` - (Required) The unique name of the container name.
51
46
47
+
-`namespace_id` - (Required) The container namespace ID of the container.
52
48
53
-
## Attributes Reference
49
+
~> **Important** Updates to `name` will recreate the container.
54
50
55
-
In addition to all above arguments, the following attributes are exported:
51
+
The following argumentsare optional:
56
52
57
-
-`name` - The unique name of the container namespace.
53
+
-`description` (Optional) The description of the container.
58
54
59
-
-`description`The description of the container.
55
+
-`environment_variables` - (Optional) The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
60
56
61
-
-`namespace_id` - The container namespace ID of the container.
57
+
-`min_scale` - (Optional) The minimum of running container instances continuously. Defaults to 0.
62
58
63
-
-`region` - (Defaults to [provider](../index.md#region)`region`). The [region](../guides/regions_and_zones.md#regions) in which the namespace should be created.
59
+
-`max_scale` - (Optional) The maximum of number of instances this container can scale to. Default to 20.
64
60
65
-
-`project_id` - (Defaults to [provider](../index.md#project_id)`project_id`) The ID of the project the namespace is associated with.
61
+
-`memory_limit` - (Optional) The memory computing resources in MB to allocate to each container. Defaults to 128.
66
62
67
-
-`environment_variables` - The environment variables of the container.
63
+
-`cpu_limit` - (Optional) The amount of vCPU computing resources to allocate to each container. Defaults to 70.
68
64
69
-
-`min_scale` - The minimum of running container instances continuously. Defaults to 0.
65
+
-`timeout` - (Optional) The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
70
66
71
-
-`max_scale` - The maximum of number of instances this container can scale to. Default to 20.
67
+
-`privacy` - (Optional) The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8).
72
68
73
-
-`memory_limit` - The memory computing resources in MB to allocate to each container. Defaults to 128.
69
+
-`registry_image` - (Optional) The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
74
70
75
-
-`cpu_limit` - The amount of vCPU computing resources to allocate to each container. Defaults to 70.
71
+
-`max_concurrency` - (Optional) The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
76
72
77
-
-`timeout` - The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
73
+
-`domain_name` - (Optional) The container domain name.
78
74
79
-
-`privacy` - The privacy type access.
75
+
-`protocol` - (Optional) The communication [protocol](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
80
76
81
-
-`registry_image` - The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
77
+
-`port` - (Optional) The port to expose the container. Defaults to 8080.
82
78
83
-
-`max_concurrency` - The maximum the number of simultaneous requests your container can handle at the same time. Defaults to 50.
79
+
-`deploy` - (Optional) Boolean controlling whether the container is on a production environment.
84
80
85
-
-`domain_name` - The container domain name.
81
+
Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
86
82
87
-
-`protocol` - The communication protocol. Defaults to http1.
83
+
## Attributes Reference
88
84
89
-
-`port` - The port to expose the container. Defaults to 8080.
85
+
In addition to all above arguments, the following attributes are exported:
90
86
91
-
-`redeploy` - Allow deploy container.
87
+
-`region` - (Defaults to [provider](../index.md#region)`region`) The [region](../guides/regions_and_zones.md#regions) in which the container was created.
88
+
-`status` - The container status.
89
+
-`cron_status` - The cron status of the container.
90
+
-`error_message` - The error message of the container.
92
91
93
-
-`organization_id` - The organization ID the container is associated with.
92
+
## Import
94
93
95
-
-`status` - The container status.
94
+
Container can be imported using the container_name, e.g.,
96
95
97
-
-`cron_status` - The cron status of the container.
The vCPU represents a portion or share of the underlying, physical CPU that is assigned to a particular virtual machine (VM).
119
+
120
+
You may decide how much computing resources to allocate to each container.
121
+
The `memory_limit` (in MB) must correspond with the right amount of vCPU.
122
+
123
+
**Important:** The right choice for your container's resources is very important, as you will be billed based on compute usage over time and the number of Containers executions.
124
+
125
+
Please check our [price](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) section for more details.
126
+
127
+
| Memory (in MB) | vCPU |
128
+
| ----------- | ----------- |
129
+
| 128 | 70m |
130
+
| 256 | 140m |
131
+
| 512 | 280m |
132
+
| 1024 | 560m |
98
133
99
-
-`error_message` - The error message of the container.
134
+
**Note:** 560mCPU accounts roughly for half of one CPU power of a Scaleway General Purpose instance
0 commit comments