Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Creating datashares - Amazon Redshift

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';
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.