Skip to content

Commit 84ab3b9

Browse files
committed
fix(docs): resource/data_source
1 parent 051e273 commit 84ab3b9

File tree

2 files changed

+43
-43
lines changed

2 files changed

+43
-43
lines changed

docs/data-sources/container.md

+16-22
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
page_title: "Scaleway: scaleway_container"
33
description: |-
4-
Gets information about a container.
4+
Gets information about a container.
55
---
6-
76
# scaleway_container
87

9-
Creates and manages Scaleway Container.
8+
Gets information about the Scaleway Container.
9+
1010
For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/).
1111

1212
For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/).
@@ -17,29 +17,23 @@ You can check also our [containers guide](https://www.scaleway.com/en/docs/compu
1717

1818
```hcl
1919
resource scaleway_container_namespace main {
20-
name = "%s"
21-
description = "test container"
2220
}
2321
2422
resource scaleway_container main {
25-
name = "my-container-02"
26-
description = "environment variables test"
23+
name = "test-container-data"
24+
namespace_id = scaleway_container_namespace.main.id
25+
}
26+
27+
// Get info by container name
28+
data "scaleway_container" "by_name" {
29+
namespace_id = scaleway_container_namespace.main.id
30+
name = scaleway_container.main.name
31+
}
32+
33+
// Get info by container ID
34+
data "scaleway_container" "by_id" {
2735
namespace_id = scaleway_container_namespace.main.id
28-
registry_image = "${scaleway_container_namespace.main.endpoint}/alpine:test"
29-
port = 9997
30-
cpu_limit = 140
31-
memory_limit = 256
32-
min_scale = 3
33-
max_scale = 5
34-
timeout = 600
35-
max_concurrency = 80
36-
privacy = "private"
37-
protocol = "h2c"
38-
deploy = true
39-
40-
environment_variables = {
41-
"foo" = "var"
42-
}
36+
container_id = scaleway_container.main.id
4337
}
4438
```
4539

docs/resources/container.md

+27-21
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
page_title: "Scaleway: scaleway_container"
33
description: |-
4-
Gets information about a container.
4+
Manages Scaleway Containers.
55
---
66

77
# scaleway_container
88

9-
Gets information about the Scaleway Container.
9+
Creates and manages Scaleway Container.
1010

1111
For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/).
1212

@@ -18,23 +18,29 @@ You can check also our [containers guide](https://www.scaleway.com/en/docs/compu
1818

1919
```hcl
2020
resource scaleway_container_namespace main {
21+
name = "my-ns-test"
22+
description = "test container"
2123
}
2224
2325
resource scaleway_container main {
24-
name = "test-container-data"
26+
name = "my-container-02"
27+
description = "environment variables test"
2528
namespace_id = scaleway_container_namespace.main.id
26-
}
27-
28-
// Get info by container name
29-
data "scaleway_container" "by_name" {
30-
namespace_id = scaleway_container_namespace.main.id
31-
name = scaleway_container.main.name
32-
}
33-
34-
// Get info by container ID
35-
data "scaleway_container" "by_id" {
36-
namespace_id = scaleway_container_namespace.main.id
37-
container_id = scaleway_container.main.id
29+
registry_image = "${scaleway_container_namespace.main.endpoint}/alpine:test"
30+
port = 9997
31+
cpu_limit = 140
32+
memory_limit = 256
33+
min_scale = 3
34+
max_scale = 5
35+
timeout = 600
36+
max_concurrency = 80
37+
privacy = "private"
38+
protocol = "h2c"
39+
deploy = true
40+
41+
environment_variables = {
42+
"foo" = "var"
43+
}
3844
}
3945
```
4046

@@ -124,11 +130,11 @@ The `memory_limit` (in MB) must correspond with the right amount of vCPU.
124130

125131
Please check our [price](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) section for more details.
126132

127-
| Memory (in MB) | vCPU |
128-
| ----------- | ----------- |
129-
| 128 | 70m |
130-
| 256 | 140m |
131-
| 512 | 280m |
132-
| 1024 | 560m |
133+
| Memory (in MB) | vCPU |
134+
|----------------|------|
135+
| 128 | 70m |
136+
| 256 | 140m |
137+
| 512 | 280m |
138+
| 1024 | 560m |
133139

134140
**Note:** 560mCPU accounts roughly for half of one CPU power of a Scaleway General Purpose instance

0 commit comments

Comments
 (0)