summaryrefslogtreecommitdiff
path: root/boto/auth.py
diff options
context:
space:
mode:
authorDaniel Lindsley <daniel@toastdriven.com>2014-02-04 13:27:18 -0800
committerDaniel Lindsley <daniel@toastdriven.com>2014-02-04 13:27:18 -0800
commitcde43ac68b0e91af15ae8e6f3998aa7e598237a6 (patch)
tree88fcb09dee723f6fc49d2037532ee27e99993126 /boto/auth.py
parent1bc32b09fd113c3c7ed0d6ea88f99732addd3af2 (diff)
downloadboto-cde43ac68b0e91af15ae8e6f3998aa7e598237a6.tar.gz
Added opt-in support for EC2.
Diffstat (limited to 'boto/auth.py')
-rw-r--r--boto/auth.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/boto/auth.py b/boto/auth.py
index d64085f1..99699af7 100644
--- a/boto/auth.py
+++ b/boto/auth.py
@@ -896,6 +896,12 @@ def get_auth_handler(host, config, provider, requested_capability=None):
def detect_potential_sigv4(func):
def _wrapper(self):
+ if os.environ.get('EC2_USE_SIGV4', False):
+ return ['hmac-v4']
+
+ if boto.config.get('ec2', 'use-sigv4', False):
+ return ['hmac-v4']
+
if hasattr(self, 'region'):
if getattr(self.region, 'endpoint', ''):
if '.cn-' in self.region.endpoint: