diff --git a/saltcloud/clouds/ec2.py b/saltcloud/clouds/ec2.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/ec2.py
+++ b/saltcloud/clouds/ec2.py
@@ -175,7 +175,7 @@ def get_configured_provider():
     '''
     return config.is_provider_configured(
         __opts__,
-        'ec2',
+        __active_provider_name__ or 'ec2',
         ('id', 'key', 'keyname', 'private_key')
     )
EC2 is now aware of the `__active_profile_name__` context variable. Refs #<I>