Managed Credentials
How to manage your credentials with Deep Lake
Last updated
Was this helpful?
Was this helpful?
# Step 1: Create the dataset directly in the cloud using your own cloud creds
ds = deeplake.empty('s3://my_bucket/dataset_name', creds = {...})
# Step 2: Connect the dataset to Deep Lake and specify the managed credentials
# (creds_key) for accessing the data (See Managed Credentials above)
ds.connect(org_id = 'my_org', creds_key = 'my_creds_key', token = 'my_token')
OR
ds.connect(dest_path = 'hub://my_org/dataset_name', creds_key = 'my_creds_key', token = 'my_token')ds.create_tensors('images', htype = 'link[image]', sample_compression = 'jpeg')
ds.add_creds_key('my_creds_key', managed=True)
ds.images.append(deeplake.link(link_to_sample, creds_key = 'my_creds_key')