File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,41 @@ page_title: "Scaleway: scaleway_account_project"
7
7
8
8
Manages organization's projects on Scaleway.
9
9
10
- ## Example Usage
10
+ ## Examples
11
+
12
+ ### Basic
11
13
12
14
``` hcl
13
15
resource "scaleway_account_project" "project" {
14
16
name = "project"
15
17
}
16
18
```
17
19
20
+ ### Use project in provider configuration
21
+
22
+ If you want to use as default a project created in terraform you can use a temporary provider alias.
23
+ This project can then be used to configure your default provider.
24
+
25
+ ``` hcl
26
+ provider "scaleway" {
27
+ alias = "tmp"
28
+ }
29
+
30
+ resource scaleway_account_project "project" {
31
+ provider = scaleway.tmp
32
+ name = "my_project"
33
+ }
34
+
35
+ provider "scaleway" {
36
+ project_id = scaleway_account_project.project.id
37
+ }
38
+
39
+ resource "scaleway_instance_server" "server" { // Will use scaleway_account_project.project
40
+ image = "ubuntu_jammy"
41
+ type = "PRO2-XXS"
42
+ }
43
+ ```
44
+
18
45
## Arguments Reference
19
46
20
47
The following arguments are supported:
You can’t perform that action at this time.
0 commit comments