OVERVIEW:
I am trying to overwrite specific variables in boto3 using the configuration file ( ~/aws/confg ). In my utility, I want to use the fakes3 service and send S3 requests to the local host.
Example:
In boto (not boto3 ), I can create a configuration in ~/.boto like this:
[s3] host = localhost calling_format = boto.s3.connection.OrdinaryCallingFormat [Boto] is_secure = False
And the client can successfully select the necessary changes and instead of sending traffic to the real S3 service, he will send it to the local host.
>>> import boto >>> boto.connect_s3() S3Connection:localhost >>>
WHAT DID I SAY:
Im trying to achieve a similar result using the boto3 library. After examining the source code, I found that I could use the location ~/aws/config . I also found an example configuration in the unittests botocore folder.
I tried to reconfigure to achieve the desired behavior. But, unfortunately, this does not work.
Here is the configuration:
[default] aws_access_key_id = XXXXXXXXX aws_secret_access_key = YYYYYYYYYYYYYY region = us-east-1 is_secure = False s3 = host = localhost
Question:
- How to overwrite
clients variables using configuration file? - Where can I find a complete list of valid configuration variables?
source share