Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Add a New Data Set to a Published Product

This sample creates and publishes a new data set by combining the AWS Marketplace Catalog API's AddDataSets change set, and the AWS Data Exchange API.

To run the sample, set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGION and ENTITY_ID that identifies the product in which to publish a data set. You can enumerate owned data products using the enumerate-data-products sample to get this ID.

$ ENTITY_ID=prod-... bundle exec ruby add-data-set.rb

Created a new Data Set 97267ce8224e3cae6286075d703f9e7f called "aws-dataexchange-api-samples test".
Adding Data Set arn:aws:dataexchange:us-east-1:147854383891:data-sets/97267ce8224e3cae6286075d703f9e7f to "prod-jrcarqhoeypfs@11".
Started change set a0z6l4wsl7jn5azcsjzy86zcl ................ done.
Change set a0z6l4wsl7jn5azcsjzy86zcl published.
Done.