File tree 5 files changed +460
-0
lines changed
examples/resources/workspace_cli_resource
5 files changed +460
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " terrakube_workspace_cli Resource - terraform-provider-terrakube"
4
+ subcategory : " "
5
+ description : |-
6
+
7
+ ---
8
+
9
+ # terrakube_workspace_cli (Resource)
10
+
11
+
12
+
13
+
14
+
15
+ <!-- schema generated by tfplugindocs -->
16
+ ## Schema
17
+
18
+ ### Required
19
+
20
+ - ` description ` (String) Workspace CLI description
21
+ - ` execution_mode ` (String) Workspace CLI execution mode (remote or local)
22
+ - ` iac_type ` (String) Workspace CLI IaC type (Supported values terraform or tofu)
23
+ - ` iac_version ` (String) Workspace CLI IaC type
24
+ - ` name ` (String) Workspace CLI name
25
+ - ` organization_id ` (String) Terrakube organization id
26
+
27
+ ### Read-Only
28
+
29
+ - ` id ` (String) Workspace CLI Id
Original file line number Diff line number Diff line change
1
+ resource "terrakube_workspace_cli" "sample1" {
2
+ organization_id = data. terrakube_organization . org . id
3
+ name = " work-from-provider1"
4
+ description = " sample"
5
+ execution_mode = " remote"
6
+ iac_type = " terraform"
7
+ iac_version = " 1.5.7"
8
+ }
9
+
10
+ resource "terrakube_workspace_cli" "sample2" {
11
+ organization_id = data. terrakube_organization . org . id
12
+ name = " work-from-provider2"
13
+ description = " sample"
14
+ execution_mode = " local"
15
+ iac_type = " tofu"
16
+ iac_version = " 1.7.0"
17
+ }
Original file line number Diff line number Diff line change @@ -22,6 +22,19 @@ type TeamEntity struct {
22
22
ManageTemplate bool `jsonapi:"attr,manageTemplate"`
23
23
}
24
24
25
+ type WorkspaceEntity struct {
26
+ ID string `jsonapi:"primary,workspace"`
27
+ Name string `jsonapi:"attr,name"`
28
+ Description string `jsonapi:"attr,description"`
29
+ Source string `jsonapi:"attr,source"`
30
+ Branch string `jsonapi:"attr,branch"`
31
+ Folder string `jsonapi:"attr,folder"`
32
+ IaCType string `jsonapi:"attr,iacType"`
33
+ IaCVersion string `jsonapi:"attr,terraformVersion"`
34
+ ExecutionMode string `jsonapi:"attr,executionMode"`
35
+ Deleted bool `jsonapi:"attr,deleted"`
36
+ }
37
+
25
38
type VcsEntity struct {
26
39
ID string `jsonapi:"primary,vcs"`
27
40
Name string `jsonapi:"attr,name"`
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ func (p *TerrakubeProvider) Resources(ctx context.Context) []func() resource.Res
171
171
NewTeamResource ,
172
172
NewModuleResource ,
173
173
NewOrganizationResource ,
174
+ NewWorkspaceCliResource ,
174
175
}
175
176
}
176
177
You can’t perform that action at this time.
0 commit comments