Skip to content

Latest commit

 

History

History
 
 

add-revision-to-a-data-set

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Add a New Revision to a Data Set

This sample adds a new finalized revision to a data set using data in S3 by combining the AWS Marketplace Catalog API's AddRevisions 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 that contains a data set to add a revision to. You can enumerate owned data products using the enumerate-data-products sample to get this ID.

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

6c6becda6a8fb086b945bbf1dca4e1f5: Junto Heartbeat updated 1 minute and 15 seconds ago
Created revision 3e6d60894e5e3bee5c528d0ef5268f71
Importing aws-samples-create-data-set-with-finalized-revision/data.txt from S3 ............. done.
The revision 3e6d60894e5e3bee5c528d0ef5268f71 has been finalized.
Started change set 2jqqse6runsgfz8uej5e2mpq6 ............ done.
Change set 2jqqse6runsgfz8uej5e2mpq6 published.
Done.