How data sharing works in Amazon Redshift - 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).

How data sharing works in Amazon Redshift

Managing datashares at different states

With cross-account datashares, there are different statuses of datashares that require your actions. Your datashare can have the status are active, action required, or inactive.

Following describes each datashare status and its required action:

  • When a producer cluster administrator creates a datashare, the datashare status on the producer cluster is Pending authorization. The producer cluster administrator can authorize data consumers to access the datashare. There isn't any action for the consumer cluster administrator.

  • When a producer cluster administrator authorizes the datashare, the datashare status becomes Authorized on the producer cluster. There isn't any action for the producer cluster administrator. When there is at least one association with a data consumer for the datashare, the datashare status changes from Authorized to Active.

    The datashare share status then becomes Available (Action required on the Amazon Redshift console) on the consumer cluster. The consumer cluster administrator can associate the datashare with data consumers or reject the datashare. The consumer cluster administrator can also use the Amazon CLI command describeDatashareforConsumer to view the status of datashares. Or the administrator can use the CLI command describeDatashare and provide the datashare Amazon Resource Name (ARN) to view the status of the datashare.

  • When the consumer cluster administrator associates a datashare with data consumers, the datashare status becomes Active on the producer cluster. When there is at least one association with a data consumer for the datashare, the datashare status changes from Authorized to Active. There isn't any action required for the producer cluster administrator.

    The datashare status becomes Active on the consumer cluster. There isn't any action required for the consumer cluster administrator.

  • When the consumer cluster administrator removes a consumer association from a datashare, the datashare status becomes either Active or Authorized. It becomes Active when there is at least one association exists for the datashare with another data consumer. It becomes Authorized when there isn't any consumer association with the datashare on the producer cluster. There isn't any action for the producer cluster administrator.

    The datashare status becomes Action required on the consumer cluster if all associations are removed. The consumer cluster administrator can reassociate a datashare with data consumers when the datashare is available to the consumers.

  • When a consumer cluster administrator declines a datashare, the datashare status on the producer cluster becomes Action required and Declined on the consumer cluster. The producer cluster administrator can reauthorize the datashare. There isn't any action for the consumer cluster administrator.

  • When the producer cluster administrator removes authorization from a datashare, the datashare's status becomes Action required on the producer cluster. The producer cluster administrator can choose to reauthorize the datashare, if necessary. There isn't any action required for the consumer cluster administrator.