question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide environment variables to override default endpoint URL

See original GitHub issue

In 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:open
  • Created 4 years ago
  • Reactions:32
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

20reactions
rwillmercommented, Apr 21, 2021

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?

18reactions
oleksandrcommented, Apr 22, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found