cloudx-proxy 0.3.10__py3-none-any.whl → 0.3.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cloudx_proxy/_version.py +2 -2
- cloudx_proxy/cli.py +5 -4
- cloudx_proxy/core.py +1 -1
- {cloudx_proxy-0.3.10.dist-info → cloudx_proxy-0.3.12.dist-info}/METADATA +1 -1
- cloudx_proxy-0.3.12.dist-info/RECORD +11 -0
- cloudx_proxy-0.3.10.dist-info/RECORD +0 -11
- {cloudx_proxy-0.3.10.dist-info → cloudx_proxy-0.3.12.dist-info}/LICENSE +0 -0
- {cloudx_proxy-0.3.10.dist-info → cloudx_proxy-0.3.12.dist-info}/WHEEL +0 -0
- {cloudx_proxy-0.3.10.dist-info → cloudx_proxy-0.3.12.dist-info}/entry_points.txt +0 -0
- {cloudx_proxy-0.3.10.dist-info → cloudx_proxy-0.3.12.dist-info}/top_level.txt +0 -0
cloudx_proxy/_version.py
CHANGED
cloudx_proxy/cli.py
CHANGED
@@ -2,13 +2,13 @@ import os
|
|
2
2
|
import sys
|
3
3
|
import click
|
4
4
|
from . import __version__
|
5
|
-
from .core import
|
5
|
+
from .core import CloudXProxy
|
6
6
|
from .setup import CloudXSetup
|
7
7
|
|
8
8
|
@click.group()
|
9
9
|
@click.version_option(version=__version__)
|
10
10
|
def cli():
|
11
|
-
"""
|
11
|
+
"""cloudx-proxy - SSH proxy to connect VSCode Remote SSH to EC2 instances using SSM."""
|
12
12
|
pass
|
13
13
|
|
14
14
|
@cli.command()
|
@@ -29,7 +29,7 @@ def connect(instance_id: str, port: int, profile: str, region: str, ssh_key: str
|
|
29
29
|
cloudx-proxy i-0123456789abcdef0 22 --aws-env prod
|
30
30
|
"""
|
31
31
|
try:
|
32
|
-
client =
|
32
|
+
client = CloudXProxy(
|
33
33
|
instance_id=instance_id,
|
34
34
|
port=port,
|
35
35
|
profile=profile,
|
@@ -85,7 +85,8 @@ def setup(profile: str, ssh_key: str, aws_env: str):
|
|
85
85
|
sys.exit(1)
|
86
86
|
|
87
87
|
# Check instance setup status
|
88
|
-
setup.wait_for_setup_completion(instance_id)
|
88
|
+
if not setup.wait_for_setup_completion(instance_id, hostname, cloudx_env):
|
89
|
+
sys.exit(1)
|
89
90
|
|
90
91
|
except Exception as e:
|
91
92
|
print(f"\n\033[91mError: {str(e)}\033[0m", file=sys.stderr)
|
cloudx_proxy/core.py
CHANGED
@@ -5,7 +5,7 @@ from pathlib import Path
|
|
5
5
|
import boto3
|
6
6
|
from botocore.exceptions import ClientError
|
7
7
|
|
8
|
-
class
|
8
|
+
class CloudXProxy:
|
9
9
|
def __init__(self, instance_id: str, port: int = 22, profile: str = "vscode",
|
10
10
|
region: str = None, ssh_key: str = "vscode", aws_env: str = None):
|
11
11
|
"""Initialize CloudX client for SSH tunneling via AWS SSM.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
cloudx_proxy/__init__.py,sha256=ZZ2O_m9OFJm18AxMSuYJt4UjSuSqyJlYRaZMoets498,61
|
2
|
+
cloudx_proxy/_version.py,sha256=KKAn9DIKrkf9v6mAp59Mf9qI6ZEjCmBhMjuc_1u5SFI,413
|
3
|
+
cloudx_proxy/cli.py,sha256=7wi00p5CUl0Dt8huMEkP85SWgA_vzcoCzch0wctvqHk,3488
|
4
|
+
cloudx_proxy/core.py,sha256=XQbVlPaqQQ352Ao_JJlN-PpqIdQtSBec0lNRB1s0JSk,7288
|
5
|
+
cloudx_proxy/setup.py,sha256=GNgZcUnnJG7q7npUl4QW_4mWfJT0gKZ_i1fwmxj3pmI,18672
|
6
|
+
cloudx_proxy-0.3.12.dist-info/LICENSE,sha256=i7P2OR4zsJYsMWcCUDe_B9ZfGi9bU0K5I2nKfDrW_N8,1068
|
7
|
+
cloudx_proxy-0.3.12.dist-info/METADATA,sha256=_RhoHyOJKYPCixp2of61kt5qaYRCebFaQB89L2hlZ00,14038
|
8
|
+
cloudx_proxy-0.3.12.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
9
|
+
cloudx_proxy-0.3.12.dist-info/entry_points.txt,sha256=HGt743N2lVlKd7O1qWq3C0aEHyS5PjPnxzDHh7hwtSg,54
|
10
|
+
cloudx_proxy-0.3.12.dist-info/top_level.txt,sha256=2wtEote1db21j-VvkCJFfT-dLlauuG5indjggYh3xDg,13
|
11
|
+
cloudx_proxy-0.3.12.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
cloudx_proxy/__init__.py,sha256=ZZ2O_m9OFJm18AxMSuYJt4UjSuSqyJlYRaZMoets498,61
|
2
|
-
cloudx_proxy/_version.py,sha256=QTWoiVZ8kBQVv_3SZGJVwOxMqBDiTg3_qUjTLFx1eco,413
|
3
|
-
cloudx_proxy/cli.py,sha256=Ph-m8lDsdU2zZab9Y6YgBBzd_UDouBnfNrYFFx0bI_E,3426
|
4
|
-
cloudx_proxy/core.py,sha256=WjKoqMmmnt6e_4JMeq4gTka75JAvQcMUs9r9XUBLmFE,7289
|
5
|
-
cloudx_proxy/setup.py,sha256=GNgZcUnnJG7q7npUl4QW_4mWfJT0gKZ_i1fwmxj3pmI,18672
|
6
|
-
cloudx_proxy-0.3.10.dist-info/LICENSE,sha256=i7P2OR4zsJYsMWcCUDe_B9ZfGi9bU0K5I2nKfDrW_N8,1068
|
7
|
-
cloudx_proxy-0.3.10.dist-info/METADATA,sha256=K2MpuinViH09VSedgNCF44liXMJoy8c6-Gc3WD8rhSg,14038
|
8
|
-
cloudx_proxy-0.3.10.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
9
|
-
cloudx_proxy-0.3.10.dist-info/entry_points.txt,sha256=HGt743N2lVlKd7O1qWq3C0aEHyS5PjPnxzDHh7hwtSg,54
|
10
|
-
cloudx_proxy-0.3.10.dist-info/top_level.txt,sha256=2wtEote1db21j-VvkCJFfT-dLlauuG5indjggYh3xDg,13
|
11
|
-
cloudx_proxy-0.3.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|