Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix import path for ec2container connection
Browse files Browse the repository at this point in the history
Also add new endpoints for ECS.
  • Loading branch information
phobologic committed May 7, 2015
1 parent 6983c00 commit 2aaa0ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions boto/ec2containerservice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
from boto.regioninfo import RegionInfo, get_regions
from boto.regioninfo import get_regions
from .layer1 import EC2ContainerServiceConnection


def regions():
Expand All @@ -30,8 +31,8 @@ def regions():
:rtype: list
:return: A list of :class:`boto.regioninfo.RegionInfo`
"""
from boto.ec2containerservice import EC2ContainerServiceConnection
return get_regions('', connection_cls=EC2ContainerServiceConnection)
return get_regions('ec2containerservice',
connection_cls=EC2ContainerServiceConnection)


def connect_to_region(region_name, **kw_params):
Expand Down
6 changes: 5 additions & 1 deletion boto/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@
"eu-central-1": "ec2.eu-central-1.amazonaws.com"
},
"ec2containerservice": {
"us-east-1": "ecs.us-east-1.amazonaws.com"
"us-east-1": "ecs.us-east-1.amazonaws.com",
"us-west-2": "ecs.us-west-2.amazonaws.com",
"eu-west-1": "ecs.eu-west-1.amazonaws.com",
"ap-northeast-1": "ecs.ap-northeast-1.amazonaws.com",
"ap-southeast-2": "ecs.ap-southeast-2.amazonaws.com"
},
"elasticache": {
"ap-northeast-1": "elasticache.ap-northeast-1.amazonaws.com",
Expand Down

0 comments on commit 2aaa0ca

Please sign in to comment.