Using DigitalOcean Spaces with AWS S3 SDKs - Python Instructions
complete
a
alexhin55
In "configure client" step using python it displays the following:
import os
import boto3
session = boto3.session.Session()
client = session.client('s3',
config=botocore.config.Config(s3={'addressing_style': 'virtual'}), // Configures to use subdomain/virtual calling format.
region_name='nyc3',
endpoint_url='https://nyc3.digitaloceanspaces.com',
aws_access_key_id=os.getenv('SPACES_KEY'),
aws_secret_access_key=os.getenv('SPACES_SECRET'))
The first argument "config=botocore.config.Config"
does not working as botocore is not defined.
John Mulhausen
complete
Hi we've updated and moved this page. Thanks for the feedback here, the code should be good to go now.
https://docs.digitalocean.com/products/spaces/how-to/use-aws-sdks/