docs(resources): iam_member documentation and examples #63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
montecarlo_iam_member (Resource)
Represents a named resource which lets you assign user to the Monte Carlo authorization group (see montecarlo_iam_group). This assignment is allowed only if the authorization group is not configured for SSO. Configured member (user) will be asigned to the configured group, selected by the group name.
This group name is effectively group ID as well (see montecarlo_iam_group) and is not shown in the Monte Carlo UI by default.
montecarlo_iam_group
resource sets the group name (ID) to the same value as its label, so the value displayed in the Monte Carlo UI, for groups terraformed by this resource, is also a group name (ID). Alternatively, if you are usingmontecarlo_iam_group
resource, you can reference group name (ID) directly in the Terraform code.To get more information about Monte Carlo authorization groups member assignments, see:
Example Usage
Schema
Required
group
(String) ID (name) of the authorization group to which the member (user) will be assigned. Current implementation requires the value to follow this formatgroups/<group_name>
. Monte Carlo UI currently does not expose name of the groups, therefore it might be complicated to obtain this value for existing groups. For this purpose, resource montecarlo_iam_group sets name of the group and its label to the same values.groups/editors-all
)groups/custom-group
)member
(String) This attribute represents the user that will be assigned to the specified Monte Carlo authorization group. Current implementation requires the value to follow this formatuser:[email protected]
. If user with this email is not found in the Monte Carlo, the resource operations will fail.Import
This resource can be imported using the import ID with following format:
{{groups/<group_name>,user:<user_email>}}
In Terraform v1.5.0 and later, use an
import
block to import a Member assignment using one of the formats above. For example:When using the
terraform import
command, Member assignment can be imported using one of the formats above. For example: