cloudx-proxy 0.4.6__tar.gz → 0.4.7__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.4.6 → cloudx_proxy-0.4.7}/CHANGELOG.md +7 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/PKG-INFO +1 -1
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy/_version.py +2 -2
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy/cli.py +11 -5
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy.egg-info/PKG-INFO +1 -1
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/.github/workflows/release.yml +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/.gitignore +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/.releaserc +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/CONTRIBUTING.md +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/LICENSE +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/README.md +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy/_1password.py +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy/__init__.py +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy/core.py +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy/setup.py +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy.egg-info/SOURCES.txt +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy.egg-info/dependency_links.txt +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy.egg-info/entry_points.txt +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy.egg-info/requires.txt +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/cloudx_proxy.egg-info/top_level.txt +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/package.json +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/pyproject.toml +0 -0
- {cloudx_proxy-0.4.6 → cloudx_proxy-0.4.7}/setup.cfg +0 -0
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.4.7](https://github.com/easytocloud/cloudX-proxy/compare/v0.4.6...v0.4.7) (2025-03-07)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* added --hostname ([0fb0aa4](https://github.com/easytocloud/cloudX-proxy/commit/0fb0aa4bfa17d58eee958d6e5ade9d9c14a11a6c))
|
7
|
+
|
1
8
|
## [0.4.6](https://github.com/easytocloud/cloudX-proxy/compare/v0.4.5...v0.4.6) (2025-03-07)
|
2
9
|
|
3
10
|
|
@@ -56,9 +56,10 @@ def connect(instance_id: str, port: int, profile: str, region: str, ssh_key: str
|
|
56
56
|
@click.option('--aws-env', help='AWS environment directory (default: ~/.aws, use name of directory in ~/.aws/aws-envs/)')
|
57
57
|
@click.option('--1password', 'use_1password', is_flag=True, help='Use 1Password SSH agent for SSH authentication')
|
58
58
|
@click.option('--instance', help='EC2 instance ID to set up connection for')
|
59
|
+
@click.option('--hostname', help='Hostname to use for SSH configuration')
|
59
60
|
@click.option('--yes', 'non_interactive', is_flag=True, help='Non-interactive mode, use default values for all prompts')
|
60
61
|
def setup(profile: str, ssh_key: str, ssh_config: str, aws_env: str, use_1password: bool,
|
61
|
-
instance: str, non_interactive: bool):
|
62
|
+
instance: str, hostname: str, non_interactive: bool):
|
62
63
|
"""Set up AWS profile, SSH keys, and configuration for CloudX.
|
63
64
|
|
64
65
|
This command will:
|
@@ -72,7 +73,7 @@ def setup(profile: str, ssh_key: str, ssh_config: str, aws_env: str, use_1passwo
|
|
72
73
|
cloudx-proxy setup --profile myprofile --ssh-key mykey
|
73
74
|
cloudx-proxy setup --ssh-config ~/.ssh/cloudx/config
|
74
75
|
cloudx-proxy setup --1password
|
75
|
-
cloudx-proxy setup --instance i-0123456789abcdef0 --yes
|
76
|
+
cloudx-proxy setup --instance i-0123456789abcdef0 --hostname myserver --yes
|
76
77
|
"""
|
77
78
|
try:
|
78
79
|
setup = CloudXSetup(
|
@@ -101,9 +102,14 @@ def setup(profile: str, ssh_key: str, ssh_config: str, aws_env: str, use_1passwo
|
|
101
102
|
# Use the --instance parameter if provided, otherwise prompt
|
102
103
|
instance_id = instance or setup.prompt("Enter EC2 instance ID (e.g., i-0123456789abcdef0)")
|
103
104
|
|
104
|
-
#
|
105
|
-
|
106
|
-
|
105
|
+
# Use --hostname if provided, otherwise generate default based on instance ID in non-interactive mode
|
106
|
+
if hostname:
|
107
|
+
# If hostname is explicitly provided, use it directly
|
108
|
+
setup.print_status(f"Using provided hostname: {hostname}", True, 2)
|
109
|
+
else:
|
110
|
+
# Generate default hostname based on instance ID for non-interactive mode
|
111
|
+
hostname_default = f"instance-{instance_id[-7:]}" if non_interactive else None
|
112
|
+
hostname = setup.prompt("Enter hostname for the instance", hostname_default)
|
107
113
|
|
108
114
|
# Set up SSH config
|
109
115
|
if not setup.setup_ssh_config(cloudx_env, instance_id, hostname):
|
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
|
File without changes
|