Skip to content

Commit 6f6c1b8

Browse files
authored
Add schema documentation for ec_organization resource. (#864)
1 parent b974454 commit 6f6c1b8

File tree

10 files changed

+98
-9
lines changed

10 files changed

+98
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.12.1 (September 27, 2024)
2+
3+
This release adds the schema documentation for the `ec_organization` resource. There are no changes to the provider itself.
4+
15
# 0.12.0 (September 26, 2024)
26

37
FEATURES:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL := /bin/bash
22
export GO111MODULE ?= on
3-
export VERSION := 0.12.0-dev
3+
export VERSION := 0.12.1-dev
44
export BINARY := terraform-provider-ec
55
export GOBIN = $(shell pwd)/bin
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ terraform {
4747
required_providers {
4848
ec = {
4949
source = "elastic/ec"
50-
version = "0.12.0"
50+
version = "0.12.1"
5151
}
5252
}
5353
}

docs/resources/organization.md

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,87 @@ resource "ec_organization" "my_org" {
117117
"[email protected]" = local.deployment_viewer
118118
}
119119
}
120-
```
120+
```
121+
122+
<!-- schema generated by tfplugindocs -->
123+
## Schema
124+
125+
### Optional
126+
127+
- `members` (Attributes Map) Manages the members of an Elastic Cloud organization. The key of each entry should be the email of the member. (see [below for nested schema](#nestedatt--members))
128+
129+
### Read-Only
130+
131+
- `id` (String) Organization ID
132+
133+
<a id="nestedatt--members"></a>
134+
### Nested Schema for `members`
135+
136+
Optional:
137+
138+
- `deployment_roles` (Attributes Set) Grant access to one or more deployments. For more info see: [Deployment instance roles](https://www.elastic.co/guide/en/cloud/current/ec-user-privileges.html#ec_instance_access_roles). (see [below for nested schema](#nestedatt--members--deployment_roles))
139+
- `organization_role` (String) The optional organization role for the member. Can be one of `organization-admin`, `billing-admin`. For more info see: [Organization roles](https://www.elastic.co/guide/en/cloud/current/ec-user-privileges.html#ec_organization_level_roles)
140+
- `project_elasticsearch_roles` (Attributes Set) Roles assigned for elasticsearch projects. For more info see: [Serverless elasticsearch roles](https://www.elastic.co/docs/current/serverless/general/assign-user-roles#es) (see [below for nested schema](#nestedatt--members--project_elasticsearch_roles))
141+
- `project_observability_roles` (Attributes Set) Roles assigned for observability projects. For more info see: [Serverless observability roles](https://www.elastic.co/docs/current/serverless/general/assign-user-roles#observability) (see [below for nested schema](#nestedatt--members--project_observability_roles))
142+
- `project_security_roles` (Attributes Set) Roles assigned for security projects. For more info see: [Serverless security roles](https://www.elastic.co/docs/current/serverless/general/assign-user-roles#security) (see [below for nested schema](#nestedatt--members--project_security_roles))
143+
144+
Read-Only:
145+
146+
- `email` (String) Email address of the user.
147+
- `invitation_pending` (Boolean) Set to true while the user has not yet accepted their invitation to the organization.
148+
- `user_id` (String) User ID.
149+
150+
<a id="nestedatt--members--deployment_roles"></a>
151+
### Nested Schema for `members.deployment_roles`
152+
153+
Required:
154+
155+
- `role` (String) Assigned role. Must be on of `viewer`, `editor` or `admin`.
156+
157+
Optional:
158+
159+
- `all_deployments` (Boolean) Role applies to all deployments in the organization.
160+
- `application_roles` (Set of String) If provided, the user assigned this role assignment will be granted this application role when signing in to the deployment(s) specified in the role assignment.
161+
- `deployment_ids` (Set of String) Role applies to deployments listed here.
162+
163+
164+
<a id="nestedatt--members--project_elasticsearch_roles"></a>
165+
### Nested Schema for `members.project_elasticsearch_roles`
166+
167+
Required:
168+
169+
- `role` (String) Assigned role. (Allowed values: `admin`, `developer`, `viewer`)
170+
171+
Optional:
172+
173+
- `all_projects` (Boolean) Role applies to all projects in the organization.
174+
- `application_roles` (Set of String) If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.
175+
- `project_ids` (Set of String) Role applies to projects listed here.
176+
177+
178+
<a id="nestedatt--members--project_observability_roles"></a>
179+
### Nested Schema for `members.project_observability_roles`
180+
181+
Required:
182+
183+
- `role` (String) Assigned role. (Allowed values: `admin`, `editor`, `viewer`)
184+
185+
Optional:
186+
187+
- `all_projects` (Boolean) Role applies to all projects in the organization.
188+
- `application_roles` (Set of String) If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.
189+
- `project_ids` (Set of String) Role applies to projects listed here.
190+
191+
192+
<a id="nestedatt--members--project_security_roles"></a>
193+
### Nested Schema for `members.project_security_roles`
194+
195+
Required:
196+
197+
- `role` (String) Assigned role. (Allowed values: `admin`, `editor`, `viewer`, `t1-analyst`, `t2-analyst`, `t3-analyst`, `threat-intel-analyst`, `rule-author`, `soc-manager`, `endpoint-operations-analyst`, `platform-engineer`, `detections-admin`, `endpoint-policy-manager`)
198+
199+
Optional:
200+
201+
- `all_projects` (Boolean) Role applies to all projects in the organization.
202+
- `application_roles` (Set of String) If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.
203+
- `project_ids` (Set of String) Role applies to projects listed here.

ec/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
package ec
1919

2020
// Version contains the current terraform provider version.
21-
const Version = "0.12.0-dev"
21+
const Version = "0.12.1-dev"

examples/deployment_ccs/deployment.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
ec = {
66
source = "elastic/ec"
7-
version = "0.12.0"
7+
version = "0.12.1"
88
}
99
}
1010
}

examples/deployment_ec2_instance/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
ec = {
66
source = "elastic/ec"
7-
version = "0.12.0"
7+
version = "0.12.1"
88
}
99

1010
aws = {

examples/deployment_with_init/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
ec = {
66
source = "elastic/ec"
7-
version = "0.12.0"
7+
version = "0.12.1"
88
}
99
}
1010
}

examples/extension_bundle/extension.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
ec = {
66
source = "elastic/ec"
7-
version = "0.12.0"
7+
version = "0.12.1"
88
}
99
}
1010
}

templates/resources/organization.md.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ Now you can run `terraform plan` to see if there are any diffs between your conf
3131

3232
### Use variables to give the same roles to multiple users
3333

34-
{{ tffile "examples/resources/ec_organization/locals.tf" }}
34+
{{ tffile "examples/resources/ec_organization/locals.tf" }}
35+
36+
{{ .SchemaMarkdown | trimspace }}

0 commit comments

Comments
 (0)