-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from mineiros-io/soerenmartius/fix-readme
Add missing id attribute to memberships documentation
- Loading branch information
Showing
2 changed files
with
38 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,21 +123,32 @@ See [variables.tf] and [examples/] for details and use-cases. | |
|
||
Default is `[]`. | ||
|
||
Example: | ||
|
||
```hcl | ||
memberships = [ | ||
{ | ||
id = "[email protected]" | ||
roles = ["MEMBER", "MANAGER"] | ||
} | ||
] | ||
``` | ||
|
||
Each `membership` object in the list accepts the following attributes: | ||
|
||
- [**`id`**](#attr-memberships-id): *(**Required** `string`)*<a name="attr-memberships-id"></a> | ||
|
||
The id of the entity. For Google-managed entities, the id must be | ||
the email address of an existing group or user. For external-identity-mapped | ||
entities, the id must be a string conforming to the identity source's requirements. | ||
|
||
- [**`roles`**](#attr-memberships-roles): *(Optional `list(string)`)*<a name="attr-memberships-roles"></a> | ||
|
||
A list of roles to bind to this Membership. Possible values are `OWNER`, `MANAGER`, and `MEMBER`. | ||
**Note:** The `OWNER` and `MANAGER` roles are supplementary roles that require the `MEMBER` role to be assigned. | ||
|
||
Default is `["MEMBER"]`. | ||
|
||
Example: | ||
|
||
```hcl | ||
roles = ["MEMBER", "MANAGER"] | ||
``` | ||
### Module Configuration | ||
|
||
- [**`module_enabled`**](#var-module_enabled): *(Optional `bool`)*<a name="var-module_enabled"></a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,11 +160,29 @@ section { | |
} | ||
|
||
variable "memberships" { | ||
type = list(membership) | ||
description = <<-END | ||
type = list(membership) | ||
description = <<-END | ||
A list of memberships (id, roles) to get attached to the group resource created. | ||
END | ||
default = [] | ||
readme_example = <<-END | ||
memberships = [ | ||
{ | ||
id = "[email protected]" | ||
roles = ["MEMBER", "MANAGER"] | ||
} | ||
] | ||
END | ||
default = [] | ||
|
||
attribute "id" { | ||
required = true | ||
type = string | ||
description = <<-END | ||
The id of the entity. For Google-managed entities, the id must be | ||
the email address of an existing group or user. For external-identity-mapped | ||
entities, the id must be a string conforming to the identity source's requirements. | ||
END | ||
} | ||
|
||
attribute "roles" { | ||
type = list(string) | ||
|
@@ -173,10 +191,6 @@ section { | |
A list of roles to bind to this Membership. Possible values are `OWNER`, `MANAGER`, and `MEMBER`. | ||
**Note:** The `OWNER` and `MANAGER` roles are supplementary roles that require the `MEMBER` role to be assigned. | ||
END | ||
|
||
readme_example = <<-END | ||
roles = ["MEMBER", "MANAGER"] | ||
END | ||
} | ||
} | ||
} | ||
|