cloudx-proxy 0.3.0__tar.gz → 0.3.1__tar.gz
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-0.3.0 → cloudx_proxy-0.3.1}/CHANGELOG.md +7 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/PKG-INFO +1 -1
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy/_version.py +2 -2
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy/core.py +6 -7
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy.egg-info/PKG-INFO +1 -1
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/.github/workflows/release.yml +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/.gitignore +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/.releaserc +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/CONTRIBUTING.md +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/LICENSE +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/README.md +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy/__init__.py +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy/cli.py +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy/setup.py +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy.egg-info/SOURCES.txt +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy.egg-info/dependency_links.txt +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy.egg-info/entry_points.txt +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy.egg-info/requires.txt +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/cloudx_proxy.egg-info/top_level.txt +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/package.json +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/pyproject.toml +0 -0
- {cloudx_proxy-0.3.0 → cloudx_proxy-0.3.1}/setup.cfg +0 -0
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.3.1](https://github.com/easytocloud/cloudX-proxy/compare/v0.3.0...v0.3.1) (2025-02-09)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* align ssh key parameter name in core module ([e121280](https://github.com/easytocloud/cloudX-proxy/commit/e121280213e9c762677882283324a382250b2a79))
|
7
|
+
|
1
8
|
# [0.3.0](https://github.com/easytocloud/cloudX-proxy/compare/v0.2.0...v0.3.0) (2025-02-09)
|
2
9
|
|
3
10
|
|
@@ -7,7 +7,7 @@ from botocore.exceptions import ClientError
|
|
7
7
|
|
8
8
|
class CloudXClient:
|
9
9
|
def __init__(self, instance_id: str, port: int = 22, profile: str = "vscode",
|
10
|
-
region: str = None,
|
10
|
+
region: str = None, ssh_key: str = "vscode", aws_env: str = None):
|
11
11
|
"""Initialize CloudX client for SSH tunneling via AWS SSM.
|
12
12
|
|
13
13
|
Args:
|
@@ -15,7 +15,7 @@ class CloudXClient:
|
|
15
15
|
port: SSH port number (default: 22)
|
16
16
|
profile: AWS profile to use (default: "vscode")
|
17
17
|
region: AWS region (default: from profile)
|
18
|
-
|
18
|
+
ssh_key: SSH key name to use (default: "vscode")
|
19
19
|
aws_env: AWS environment directory (default: None, uses ~/.aws)
|
20
20
|
"""
|
21
21
|
self.instance_id = instance_id
|
@@ -39,10 +39,9 @@ class CloudXClient:
|
|
39
39
|
self.ec2 = self.session.client('ec2')
|
40
40
|
self.ec2_connect = self.session.client('ec2-instance-connect')
|
41
41
|
|
42
|
-
#
|
43
|
-
|
44
|
-
|
45
|
-
self.public_key_path = Path(public_key_path)
|
42
|
+
# Set up SSH key path
|
43
|
+
self.ssh_dir = os.path.expanduser("~/.ssh/vscode")
|
44
|
+
self.ssh_key = os.path.join(self.ssh_dir, f"{ssh_key}.pub")
|
46
45
|
|
47
46
|
def log(self, message: str) -> None:
|
48
47
|
"""Log message to stderr to avoid interfering with SSH connection."""
|
@@ -88,7 +87,7 @@ class CloudXClient:
|
|
88
87
|
def push_ssh_key(self) -> bool:
|
89
88
|
"""Push SSH public key to instance via EC2 Instance Connect."""
|
90
89
|
try:
|
91
|
-
with open(self.
|
90
|
+
with open(self.ssh_key) as f:
|
92
91
|
public_key = f.read()
|
93
92
|
|
94
93
|
self.ec2_connect.send_ssh_public_key(
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|