Python Boto3
Python Boto3 is a programming API for accessing S3 buckets.
Access credentials
Copy access keys from ICE Connect
Services ➡ S3 Storage ➡ Keys
Paste it to the file
~/.aws/credentials
[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY
Connect to a bucket
s3-example.py
import boto3
s3 = boto3.resource(
"s3",
endpoint_url="https://s3.ice.ri.se",
)
bucket = s3.Bucket("do-test")