Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document access rule order better #541

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cyral/internal/repository/accessrules/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ func resourceSchema() *schema.Resource {
},

"rule": {
Description: "An ordered list of access rules.",
Required: true,
Type: schema.TypeList,
Description: "A list of access rules. The order in which access rules are declared " +
"dictates the precedence of the rules (first one has the highest priority)",
Required: true,
Type: schema.TypeList,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/repository_access_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ resource "cyral_repository_access_rules" "some_resource_name" {
### Required

- `repository_id` (String) ID of the repository.
- `rule` (Block List, Min: 1) An ordered list of access rules. (see [below for nested schema](#nestedblock--rule))
- `rule` (Block List, Min: 1) A list of access rules. The order in which access rules are declared dictates the precedence of the rules (first one has the highest priority) (see [below for nested schema](#nestedblock--rule))
- `user_account_id` (String) ID of the database account. This should be the attribute `user_account_id` of the resource `cyral_repository_user_account`.

### Read-Only
Expand Down
Loading