Provide environment variables to override default endpoint URL
See original GitHub issueIn a world of environment variables used as configuration to switch between environments, it would be really useful if boto3 would support an variable to switch between endpoints.
In our use case we want to use boto3 with minio https://min.io in the dev and continuous integration environments and switching with a variable such as AWS_S3_ENDPOINT_URL
would be super useful.
Right now, we have to hack our way though some custom python code, or have some startup writing of an aws configuration file, which is not ideal.
See https://docs.min.io/docs/aws-cli-with-minio for how the “alternative” entrypoint is used.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:32
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Provide environment variables to override default endpoint URL
In a world of environment variables used as configuration to switch between environments, it would be really useful if aws-cli would support ...
Read more >Environment variables to configure the AWS CLI
If defined, this environment variable overrides the value for the profile setting region . You can override this environment variable by using the...
Read more >Is there any way to specify --endpoint-url in aws cli config file
You may not be using Docker or LocalStack, etc, so ultimately you will have to provide the AWS_ENDPOINT_OVERRIDE environment variable via a ...
Read more >Environment variables and app settings in Azure App Service
To override the default decryption value, configure it as an App Service app setting, or set it directly in the machineKey element of...
Read more >Environment Variables | Cypress Documentation
If your environment variables match a standard configuration key, then instead of setting an environment variable they will instead override the configuration ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As I mentioned back in Jan, I’ve submitted a PR back in Jan to provide a fix for this which people would like to see in core. What’s the process for getting someone to review and merge?
It would be nice to have as in some cases boto3 is used as dependency and there’s no way to access it’s constructor - environment variables is the only way to change configuration.