You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Changed the policy_templates schema to allow user to choose exact attributes<br>- Removed the boolean onboard_all_account_groups and replaced it with account_group_ids_to_assign which allows consumers to pass a list of account IDs (or pass "all" for all account groups)<br>- Added workaround for IBM terraform provider bugs (#171)
onboard_all_account_groups=false# Set this to true to add the template to all account groups. Support for selecting specific groups is coming in https://github.com/terraform-ibm-modules/terraform-ibm-trusted-profile/issues/163
|[ibm_enterprise_account_groups.all_groups](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/enterprise_account_groups)| data source |
66
80
|[ibm_enterprise_accounts.all_accounts](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/enterprise_accounts)| data source |
67
81
68
82
### Inputs
69
83
70
84
| Name | Description | Type | Default | Required |
| <aname="input_account_group_ids_to_assign"></a> [account\_group\_ids\_to\_assign](#input\_account\_group\_ids\_to\_assign)| A list of account group IDs to assign the template to. Support passing the string 'all' in the list to assign to all account groups. |`list(string)`| <pre>[<br/> "all"<br/>]</pre> | no |
72
87
| <aname="input_identity_crn"></a> [identity\_crn](#input\_identity\_crn)| CRN of the identity |`string`| n/a | yes |
73
-
| <aname="input_onboard_all_account_groups"></a> [onboard\_all\_account\_groups](#input\_onboard\_all\_account\_groups)| Whether to onboard all account groups to the template. |`bool`|`true`| no |
74
-
| <aname="input_policy_templates"></a> [policy\_templates](#input\_policy\_templates)| List of IAM policy templates to create | <pre>list(object({<br/> name = string<br/> description = string<br/> roles = list(string)<br/> service = string<br/> }))</pre> | n/a | yes |
88
+
| <aname="input_policy_templates"></a> [policy\_templates](#input\_policy\_templates)| List of IAM policy templates to create | <pre>list(object({<br/> name = string<br/> description = string<br/> roles = list(string)<br/> attributes = list(object({<br/> key = string<br/> value = string<br/> operator = string<br/> }))<br/> }))</pre> | n/a | yes |
75
89
| <aname="input_profile_description"></a> [profile\_description](#input\_profile\_description)| Description of the trusted profile inside the template |`string`|`null`| no |
76
90
| <aname="input_profile_name"></a> [profile\_name](#input\_profile\_name)| Name of the trusted profile inside the template |`string`| n/a | yes |
77
91
| <aname="input_template_description"></a> [template\_description](#input\_template\_description)| Description of the trusted profile template |`string`|`null`| no |
validate_group_ids=!local.all_groups?length(local.compared_list) !=length(var.account_group_ids_to_assign) ?tobool("Could not find all of the groups listed in the 'account_group_ids_to_assign' value. Please verify all values are correct") :true:true
0 commit comments