Creating datashares
You create a datashare on the cluster that you want to use as the producer cluster. To learn more about datashare considerations, see Data sharing considerations in Amazon Redshift in the Amazon Redshift Database Developer Guide.
-
Choose the database on the producer cluster that you want to use.
-
Create the datashare. For example:
create datashare mysource;
-
Set permissions on the datashare. For example:
grant alter, share on datashare mysource to admin;
-
Set permissions on the database objects that you want to share. For example:
alter datashare mysource add schema public;
alter datashare mysource add table public.event;
-
Set permissions on the consumer cluster namespace to access the datashare. For example:
grant usage on datashare mysource to namespace '2b12345-1234-5678-9012-bb1234567890';