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
{{ message }}
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
# Granting permissions to execute functions or procedures requires providing their arguments' types
31
-
32
31
resource "redshift_grant" "user" {
33
32
user = "john"
34
33
schema = "my_schema"
35
34
object_type = "function"
36
35
objects = ["my_function(float)"]
37
36
privileges = ["execute"]
38
37
}
38
+
39
+
# Granting permission to PUBLIC (GRANT ... TO PUBLIC)
40
+
resource "redshift_grant" "public" {
41
+
group = "public" // "public" or "PUBLIC" (it is case insensitive for this case) here indicates we want grant TO PUBLIC, not "public" group which cannot even be created in Redshift (keyword).
-**group** (String) The name of the group to grant privileges on. Either `group` or `user` parameter must be set.
58
+
-**group** (String) The name of the group to grant privileges on. Either `group` or `user` parameter must be set. Settings the group name to `public` or `PUBLIC` (it is case insensitive in this case) will result in a `GRANT ... TO PUBLIC` statement.
52
59
-**id** (String) The ID of this resource.
53
60
-**objects** (Set of String) The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on all objects of the specified type. Ignored when `object_type` is one of (`database`, `schema`).
54
61
-**schema** (String) The database schema to grant privileges on.
# Granting permissions to execute functions or procedures requires providing their arguments' types
16
-
17
16
resource"redshift_grant""user" {
18
17
user="john"
19
18
schema="my_schema"
20
19
object_type="function"
21
20
objects=["my_function(float)"]
22
21
privileges=["execute"]
23
22
}
23
+
24
+
# Granting permission to PUBLIC (GRANT ... TO PUBLIC)
25
+
resource"redshift_grant""public" {
26
+
group="public"// "public" or "PUBLIC" (it is case insensitive for this case) here indicates we want grant TO PUBLIC, not "public" group which cannot even be created in Redshift (keyword).
0 commit comments