You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2021/11/26 11:53:52 UTC

[libcloud] 02/05: Update code and add missing data for the new EC2 ap-east-1 region.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 762f0e5623b6f9837204ffe27d825b236c9c9970
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Nov 26 12:25:36 2021 +0100

    Update code and add missing data for the new EC2 ap-east-1 region.
---
 contrib/scrape-ec2-prices.py | 1 +
 contrib/scrape-ec2-sizes.py  | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/contrib/scrape-ec2-prices.py b/contrib/scrape-ec2-prices.py
index d373a59..a856dbd 100755
--- a/contrib/scrape-ec2-prices.py
+++ b/contrib/scrape-ec2-prices.py
@@ -56,6 +56,7 @@ EC2_REGIONS = [
     "ap-south-1",
     "sa-east-1",
     "cn-north-1",
+    "ap-east-1",
 ]
 
 EC2_INSTANCE_TYPES = [
diff --git a/contrib/scrape-ec2-sizes.py b/contrib/scrape-ec2-sizes.py
index e27bfc3..436d257 100755
--- a/contrib/scrape-ec2-sizes.py
+++ b/contrib/scrape-ec2-sizes.py
@@ -179,6 +179,13 @@ REGION_DETAILS = {
         "country": "Japan",
         "signature_version": "4",
     },
+    "Asia Pacific (Hong Kong)": {
+        "id": "ap-east-1",
+        "endpoint": "ec2.ap-east-1.amazonaws.com",
+        "api_name": "ec2_ap_east",
+        "country": "Hong Kong",
+        "signature_version": "2",
+    },
     # Not in JSON
     "China (Beijing)": {
         "id": "cn-north-1",