Skip to content

Commit

Permalink
Update rdb_privilege.md (#2414)
Browse files Browse the repository at this point in the history
Update documentation and add coherence to the example.
  • Loading branch information
Sryther authored Feb 23, 2024
1 parent 072e651 commit 7cf136f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions docs/resources/rdb_privilege.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,19 @@ resource "scaleway_rdb_database" "main" {
name = "database"
}
resource "scaleway_rdb_privilege" "main" {
instance_id = scaleway_rdb_instance.main.id
user_name = "my-db-user"
database_name = "my-db-name"
permission = "all"
depends_on = [scaleway_rdb_user.main, scaleway_rdb_database.main]
}
resource "scaleway_rdb_user" "main" {
instance_id = scaleway_rdb_instance.main.id
name = "foobar"
name = "my-db-user"
password = "thiZ_is_v&ry_s3cret"
is_admin = false
}
resource "scaleway_rdb_privilege" "main" {
instance_id = scaleway_rdb_instance.main.id
user_name = scaleway_rdb_user.main.name
database_name = scaleway_rdb_database.main.name
permission = "all"
}
```

## Argument Reference
Expand Down

0 comments on commit 7cf136f

Please sign in to comment.