Sumanth Babu
Sumanth Babu

Reputation: 1

List freely available datasets in AWS Marketplace using an API or Python

I have a situation where I need to list all the open data sets available in AWS Marketplace.

How can I get the list and dataset details available without any subscription needed either by using AWS data-exchange API or by any other program - maybe using python.

This is the code I used but it was giving empty set may be because I didn't subscribe to any data:

import boto3

# Set up AWS credentials and region 
access_key = '***********************' 
secret_key = '****************' 
region = 'us-east-1' 

# Create an AWS Data Exchange client object 
client = boto3.client('dataexchange', region_name=region, aws_access_key_id=access_key, aws_secret_access_key=secret_key) 

# List available data sets 
response = client.list_data_sets() 

# Print the data set names 
for dataset in response['DataSets']: 
  print(dataset['Name']) 

It is showing an empty result, maybe because it lists only subscribed data?

Upvotes: 0

Views: 112

Answers (0)

Related Questions