Search

Connectors

Contact support

Helpdesk portal

AWS S3 - Getting started in Peliqan

AWS S3 - Getting started in Peliqan

You can build low-code data pipelines in Peliqan that import data from S3 buckets or write data into S3 buckets.

Export data to S3

Example to write a file to an S3 bucket:

from io import BytesIO
import boto3

aws_access_key_id = "your_aws_access_key_id"
aws_secret_access_key = "your_aws_secret_access_key"
aws_bucket_name = "your_bucket_name"

s3_client = boto3.client(
  's3',
  aws_access_key_id = aws_access_key_id,
  aws_secret_access_key= aws_secret_access_key,
) 

s3_client.upload_fileobj(BytesIO(file_contents), aws_bucket_name, file_name)

Example to export a table from the Peliqan data warehouse into a CSV file on S3:

Import data from S3

Example to import CSV files from S3 into a table in the Peliqan DWH: