Hi,
I solved it:
s3client = boto3.resource(
's3',
aws_access_key_id = args.AWS_ACCESS_KEY_ID,
aws_secret_access_key=args.AWS_SECRET_ACCESS_KEY,
#before: config=Config(proxies={'https': '192.168.88.1:3128'}),
config=Config(proxies={'https': '%s:%s' % (args.proxy, args.port)})
)
Die Suche ergab 2 Treffer
- Donnerstag 9. November 2017, 10:52
- Forum: Allgemeine Fragen
- Thema: Variable in S3 Proxy Server Verbindung mit Boto3
- Antworten: 2
- Zugriffe: 1242
- Donnerstag 9. November 2017, 10:36
- Forum: Allgemeine Fragen
- Thema: Variable in S3 Proxy Server Verbindung mit Boto3
- Antworten: 2
- Zugriffe: 1242
Variable in S3 Proxy Server Verbindung mit Boto3
Hi,
I want to use the IP and Port as Variables in my S3 Proxy Server Connect command using the boto3 module.
This is the Python AWS S3 connect, which works fine:
s3client = boto3.resource(
's3',
aws_access_key_id = args.AWS_ACCESS_KEY_ID,
aws_secret_access_key=args.AWS_SECRET_ACCESS_KEY ...
I want to use the IP and Port as Variables in my S3 Proxy Server Connect command using the boto3 module.
This is the Python AWS S3 connect, which works fine:
s3client = boto3.resource(
's3',
aws_access_key_id = args.AWS_ACCESS_KEY_ID,
aws_secret_access_key=args.AWS_SECRET_ACCESS_KEY ...
