Creating datashares - Amazon Redshift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.

  1. Choose the database on the producer cluster that you want to use.

  2. Create the datashare. For example:

    create datashare mysource;
  3. Set permissions on the datashare. For example:

    grant alter, share on datashare mysource to admin;
  4. 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;
  5. 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';