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

Ability to grant EXECUTE function #34

Closed
ncolomer opened this issue Dec 13, 2021 · 0 comments · Fixed by #57
Closed

Ability to grant EXECUTE function #34

ncolomer opened this issue Dec 13, 2021 · 0 comments · Fixed by #57
Labels
enhancement New feature or request

Comments

@ncolomer
Copy link

Hello,

It would be great if we could use redshift_grant resource to grant EXECUTE on functions.

Redshift specifications for granting and revoking this permission are:

GRANT { EXECUTE | ALL [ PRIVILEGES ] }
    ON { FUNCTION function_name ( [ [ argname ] argtype [, ...] ] ) [, ...] | ALL FUNCTIONS IN SCHEMA schema_name [, ...] }
    TO { username [ WITH GRANT OPTION ] | GROUP group_name | PUBLIC } [, ...]
REVOKE [ GRANT OPTION FOR ]
EXECUTE 
    ON FUNCTION function_name ( [ [ argname ] argtype [, ...] ] ) [, ...]
    FROM { username | GROUP group_name | PUBLIC } [, ...]
[ CASCADE | RESTRICT ]

We could do the same for procedures, which is very close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants