Publishing a product in AWS Data Exchange containing Amazon Redshift data sets
An Amazon Redshift data set contains AWS Data Exchange datashares for Amazon Redshift. When customers subscribe to a product containing datashares, they are granted read-only access to the tables, views, schemas, and user-defined functions that a data provider adds to the datashare.
As a data provider, you create an AWS Data Exchange for Amazon Redshift datashare in your cluster. Then, you add to the datashare the schemas, tables, views, and user-defined functions that you want the subscribers to access. You then import the datashare to AWS Data Exchange, create a data set, add it to a product, and publish the product. Subscribers are granted access to the datashare upon subscription.
After you have set up your Amazon Redshift datashare in Amazon Redshift, you can create a new Amazon Redshift data set in AWS Data Exchange. You can then create a revision, and add Amazon Redshift datashare assets. This allows requests to the AWS Data Exchange endpoint to proxy through to your Amazon Redshift datashare. You can then add this data set to a product and add pricing. Then, prospective subscribers can view your product and subscribe to it in the AWS Data Exchange catalog.
The following topics describe the process of creating an Amazon Redshift data set and publishing a new product with Amazon Redshift data sets using the AWS Data Exchange console. The process has the following steps:
Steps
Step 1: Create an Amazon Redshift datashare asset
Assets are the data in AWS Data Exchange. For more information, see Assets.
To create an Amazon Redshift datashare asset
-
Create a datashare within your Amazon Redshift cluster.
For more information about how to create a datashare, see Working with AWS Data Exchange datashares as a producer in the Amazon Redshift Database Developer Guide.
Note
We recommend setting your datashare as publicly accessible. If you do not, customers with publicly accessible clusters will not be able to consume your data.
Step 2: Create an Amazon Redshift data set
An Amazon Redshift data set includes AWS Data Exchange datashares for Amazon Redshift. For more information, see Amazon Redshift data set.
To create an Amazon Redshift data set
-
Open your web browser and sign in to the AWS Data Exchange console
. -
On the left side navigation pane, under Publish data, choose Owned data sets.
-
In Owned data sets, choose Create data set to open the Data set creation steps wizard.
-
In Select data set type, choose Amazon Redshift datashare.
-
In Define data set, enter a Name and Description for your data set. For more information, see Data set best practices.
-
Under Add tags – optional, add tags.
-
Choose Create.
Step 3: Create a revision
In the following procedure, you create a revision after you’ve created a data set in the AWS Data Exchange console. For more information, see Revisions.
To create a revision
-
On the Data set overview section of the data set details page:
-
(Optional) Choose Edit name to edit information about your data set.
-
(Optional) Choose Delete to delete the data set.
-
-
On the Revisions section, choose Create revision.
-
Under Define revision, provide an optional comment for your revision that describes the purpose of the revision.
-
Under Add tags – optional, add tags associated with the resource.
-
Choose Create.
-
Review, edit, or delete your changes from the previous step.
Step 4: Add Amazon Redshift datashare assets to a revision
In the following procedure, you add Amazon Redshift datashare assets to a revision, and then finalize the revision in the AWS Data Exchange console. For more information, see Assets.
To add assets to the revision
-
Under the AWS Data Exchange datashares for Amazon Redshift section of the data set details page, choose Add datashares.
-
Under AWS Data Exchange datashares for Amazon Redshift, select the datashares and then choose Add datashare(s).
Note
You can add up to 20 datashares to a revision.
A job is started to import your assets into your revision.
-
After the job is finished, the State field in the Jobs section is updated to Completed.
-
If you have more data to add, repeat Step 1.
-
Under Revision overview, review your revision and its assets.
-
Choose Finalize.
You have successfully finalized a revision for a data set.
You can edit or delete a revision before you add it to a product.
Step 5: Publish a new product containing Amazon Redshift data sets
After you've created at least one data set and finalized a revision with assets, you're ready to publish a product with Amazon Redshift data sets. For more information, see Product best practices in AWS Data Exchange. Make sure that you have all required details about your product and offer.
To publish a new product containing Amazon Redshift data sets
-
From the left navigation pane of the AWS Data Exchange console
, under Publish data, choose Products. -
From Products, choose Publish new product to open the Publish new product wizard.
-
In the Product visibility section, choose your product's Product visibility options and Sensitive information configuration, and then choose Next. For more information, see Product visibility in AWS Data Exchange and Sensitive categories of information in AWS Data Exchange.
-
In the Add data section, under Owned data sets, select the check boxes next to the data sets that you want to add, and then choose Add selected.
Note
The data sets you choose must have a finalized revision. Data sets without finalized revisions won't be added.
-
Go to Selected data sets to review your selections.
You can review the Name of the data set, the Type of data set, and the timestamp of when the data set was Last updated.
-
Go to Select revision access rules, choose the revision access rules that you want to set for data sets included in this product, and then choose Next.
For more details, see Revision access rules in AWS Data Exchange.
-
-
In the Define product section, under Product overview, enter information about your product, including the Product name, Product logo, Support contact information, and Product categories.
For more information, see Product best practices in AWS Data Exchange.
-
(Optional) In the Define product section, under Data dictionaries and samples – optional, choose a data set by selecting the option button next to the data set name and then choose Edit.
For more information, see Data dictionaries in AWS Data Exchange and Sample data in AWS Data Exchange.
-
In the Edit dialog box, under Upload data dictionary, choose Add file to upload a new data dictionary.
You can choose one data dictionary, in .csv format, with a maximum size of 1 MB.
-
Choose a saved data dictionary from your computer and then choose Open.
The data dictionary .csv file appears on the Edit dialog box.
Note
Your data dictionary must conform to the AWS Data Exchange data dictionary template. If you don’t have a saved data dictionary to upload, you can choose either the blank data dictionary template link or the example data dictionary link in the AWS Data Exchange console.
-
Choose Data dictionary preview to preview it.
-
Under Samples - optional, choose Upload samples, choose a sample from your computer, and then choose Open.
The samples appear on the Edit dialog box.
Note
You can upload up to 10 samples with a maximum size of 50 MB. Samples in .csv format can be previewed.
-
Enter a description for each sample that will be visible on the product detail page.
-
Choose Save.
-
-
Under Product definition, enter a Short description and a Long description of your product.
If you want to use a template for your long description, select Apply template, choose your template type, and then fill out the template with your specific product details.
-
Choose Next.
-
Configure your offer.
-
If you are creating a public offer, in the Add public offer section, configure your offer. All AWS Data Exchange products with visibility set to Public require a public offer.
-
Choose your Pricing and access duration options for the subscription.
-
Choose your US sales tax settings, data subscription agreement (DSA), and refund policy.
-
(Optional) Set Subscription verification, which enables you to control who can subscribe to this product. For more information, see Subscription verification for providers in AWS Data Exchange.
-
Choose your Offer auto-renewal option. For more information, see Creating an offer for AWS Data Exchange products.
-
Choose Next.
-
-
If you are creating a private offer, configure the offer details in the Add custom offer section.
-
In the Subscriber account information section, add at least one subscriber account to which you want to extend the offer.
-
Choose your Pricing and access duration options for the subscription.
-
Choose the Offer expiration date by which the subscriber must accept the offer.
-
Choose your US sales tax settings, data subscription agreement (DSA), and refund policy.
-
Choose your Offer auto-renewal option. For more information, see Creating an offer for AWS Data Exchange products.
-
Choose Next.
-
-
-
In the Review & publish section, review your product information and then expand the Product page preview to see how it will look after it’s published.
-
If you're sure that you want to make the product and public offer visible and available to everyone, choose Publish.
You've now completed the manual portion of publishing a data product with a public offer. AWS Data Exchange prepares and publishes your product. On the Product overview page, the status of your product is Awaiting approval and then changes to Published after it's published.
Step 6: (Optional) Copy a product
After you have created your first product, you can copy its details and public offers to create a new product.
Note
You can copy a public, private, published, or unpublished product. Custom offers associated with the product will not be copied, but public offers will be copied.
To copy a product
-
Open your web browser and sign in to the AWS Data Exchange console
. -
From the left navigation pane, under Publish data, choose Products.
-
From Products, choose the button next to the product you want to copy.
-
Select the Actions dropdown, and then choose Create copy.
-
Continue through the Publish a product workflow, with details already filled in, based on the product you chose in Step 3. For more information, see Step 5: Publish a new product.