sagemaker-hyperpod 3.12.0__tar.gz → 3.13.0__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.
- {sagemaker_hyperpod-3.12.0/src/sagemaker_hyperpod.egg-info → sagemaker_hyperpod-3.13.0}/PKG-INFO +8 -4
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/README.md +7 -3
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/pyproject.toml +1 -1
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/setup.py +1 -1
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/cluster_stack.py +9 -8
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/init.py +7 -2
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cluster_management/hp_cluster_stack.py +5 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0/src/sagemaker_hyperpod.egg-info}/PKG-INFO +8 -4
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/LICENSE +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/NOTICE +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/setup.cfg +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/clients/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/clients/kubernetes_client.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/cluster_stack_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/cluster_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/cluster.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/inference.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/ray_dashboard_connection.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/space.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/space_access.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/space_template.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/training.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/training_recipe.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/common_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/command_constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/exception_constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/hyperpod_instance_types.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/init_constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/kueue_constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/pytorch_constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/ray_dashboard_connection_constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/space_access_constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/space_constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/constants/space_template_constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/hyp_cli.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/inference_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/init_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/recipe_param_order.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/recipe_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/cancel_training_job.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/discover_namespaces.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/exec_command.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/get_logs.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/get_namespaces.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/get_training_job.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/list_pods.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/list_training_jobs.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/service/self_subject_access_review.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/space_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/templates/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/training_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/type_handler_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/validators/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/validators/cluster_validator.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/validators/job_validator.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/validators/validator.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cluster_management/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cluster_management/config/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cluster_management/config/hp_cluster_stack_config.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/cli_decorators.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/config/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/config/metadata.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/exceptions/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/telemetry/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/telemetry/constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/telemetry/telemetry_logging.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/telemetry/user_agent.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/config/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/config/constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/config/hp_endpoint_config.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/config/hp_jumpstart_endpoint_config.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/constant.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/hp_endpoint.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/hp_endpoint_base.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/hp_jumpstart_endpoint.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/jumpstart_public_hub_visualization_utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/observability/MonitoringConfig.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/observability/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/observability/constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/observability/utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/space/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/space/hyperpod_space.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/space/hyperpod_space_template.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/space/utils.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/training/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/training/accelerator_partition_util.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/training/config/__init__.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/training/config/hyperpod_pytorch_job_unified_config.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/training/constants.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/training/hyperpod_pytorch_job.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/training/quota_allocation_util.py +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker_hyperpod.egg-info/SOURCES.txt +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker_hyperpod.egg-info/dependency_links.txt +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker_hyperpod.egg-info/entry_points.txt +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker_hyperpod.egg-info/requires.txt +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker_hyperpod.egg-info/top_level.txt +0 -0
- {sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker_hyperpod.egg-info/zip-safe +0 -0
{sagemaker_hyperpod-3.12.0/src/sagemaker_hyperpod.egg-info → sagemaker_hyperpod-3.13.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sagemaker-hyperpod
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.13.0
|
|
4
4
|
Summary: Amazon SageMaker HyperPod SDK and CLI
|
|
5
5
|
Home-page: https://github.com/aws/sagemaker-hyperpod-cli
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -240,12 +240,14 @@ hyp create --region <region>
|
|
|
240
240
|
|
|
241
241
|
**Note**: The region flag is optional. If not provided, the command will use the default region from your AWS credentials configuration.
|
|
242
242
|
|
|
243
|
-
#### List
|
|
243
|
+
#### List CloudFormation Stacks
|
|
244
244
|
|
|
245
245
|
```bash
|
|
246
246
|
hyp list cluster-stack
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
+
**Note**: This command lists all CloudFormation stacks in the current AWS account and Region. It does not currently filter the results to HyperPod-created stacks.
|
|
250
|
+
|
|
249
251
|
| Option | Type | Description |
|
|
250
252
|
|--------|------|-------------|
|
|
251
253
|
| `--region <region>` | Optional | The AWS region to list stacks from. |
|
|
@@ -1061,14 +1063,16 @@ cluster_stack = HpClusterStack(
|
|
|
1061
1063
|
response = cluster_stack.create(region="us-east-2")
|
|
1062
1064
|
```
|
|
1063
1065
|
|
|
1064
|
-
#### Listing
|
|
1066
|
+
#### Listing CloudFormation Stacks
|
|
1065
1067
|
|
|
1066
1068
|
```python
|
|
1067
|
-
# List all
|
|
1069
|
+
# List all CloudFormation stacks in the Region
|
|
1068
1070
|
stacks = HpClusterStack.list(region="us-east-2")
|
|
1069
1071
|
print(f"Found {len(stacks['StackSummaries'])} stacks")
|
|
1070
1072
|
```
|
|
1071
1073
|
|
|
1074
|
+
**Note**: `HpClusterStack.list()` returns all CloudFormation stacks in the current account and Region; it does not filter to HyperPod cluster stacks.
|
|
1075
|
+
|
|
1072
1076
|
#### Describing a Cluster Stack
|
|
1073
1077
|
|
|
1074
1078
|
```python
|
|
@@ -181,12 +181,14 @@ hyp create --region <region>
|
|
|
181
181
|
|
|
182
182
|
**Note**: The region flag is optional. If not provided, the command will use the default region from your AWS credentials configuration.
|
|
183
183
|
|
|
184
|
-
#### List
|
|
184
|
+
#### List CloudFormation Stacks
|
|
185
185
|
|
|
186
186
|
```bash
|
|
187
187
|
hyp list cluster-stack
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
+
**Note**: This command lists all CloudFormation stacks in the current AWS account and Region. It does not currently filter the results to HyperPod-created stacks.
|
|
191
|
+
|
|
190
192
|
| Option | Type | Description |
|
|
191
193
|
|--------|------|-------------|
|
|
192
194
|
| `--region <region>` | Optional | The AWS region to list stacks from. |
|
|
@@ -1002,14 +1004,16 @@ cluster_stack = HpClusterStack(
|
|
|
1002
1004
|
response = cluster_stack.create(region="us-east-2")
|
|
1003
1005
|
```
|
|
1004
1006
|
|
|
1005
|
-
#### Listing
|
|
1007
|
+
#### Listing CloudFormation Stacks
|
|
1006
1008
|
|
|
1007
1009
|
```python
|
|
1008
|
-
# List all
|
|
1010
|
+
# List all CloudFormation stacks in the Region
|
|
1009
1011
|
stacks = HpClusterStack.list(region="us-east-2")
|
|
1010
1012
|
print(f"Found {len(stacks['StackSummaries'])} stacks")
|
|
1011
1013
|
```
|
|
1012
1014
|
|
|
1015
|
+
**Note**: `HpClusterStack.list()` returns all CloudFormation stacks in the current account and Region; it does not filter to HyperPod cluster stacks.
|
|
1016
|
+
|
|
1013
1017
|
#### Describing a Cluster Stack
|
|
1014
1018
|
|
|
1015
1019
|
```python
|
|
@@ -47,7 +47,7 @@ for root, dirs, files in os.walk(
|
|
|
47
47
|
setup(
|
|
48
48
|
data_files=sagemaker_hyperpod_recipes,
|
|
49
49
|
name="sagemaker-hyperpod",
|
|
50
|
-
version="3.
|
|
50
|
+
version="3.13.0",
|
|
51
51
|
description="Amazon SageMaker HyperPod SDK and CLI",
|
|
52
52
|
long_description=open("README.md").read(),
|
|
53
53
|
long_description_content_type="text/markdown",
|
|
@@ -210,21 +210,22 @@ def describe_cluster_stack(stack_name: str, debug: bool, region: str) -> None:
|
|
|
210
210
|
help="Filter by stack status. Format: \"['CREATE_COMPLETE', 'UPDATE_COMPLETE']\"")
|
|
211
211
|
@_hyperpod_telemetry_emitter(Feature.HYPERPOD_CLI, "list_cluster_stack_cli")
|
|
212
212
|
def list_cluster_stacks(region, debug, status):
|
|
213
|
-
"""List
|
|
213
|
+
"""List CloudFormation stacks in the current AWS account and Region.
|
|
214
214
|
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
Returns all CloudFormation stacks in the current account and Region. This
|
|
216
|
+
command does not currently filter results to stacks created for HyperPod
|
|
217
|
+
clusters. Use --status to filter by stack status.
|
|
217
218
|
|
|
218
219
|
.. dropdown:: Usage Examples
|
|
219
220
|
:open:
|
|
220
221
|
|
|
221
222
|
.. code-block:: bash
|
|
222
223
|
|
|
223
|
-
# List
|
|
224
|
-
hyp list
|
|
224
|
+
# List CloudFormation stacks
|
|
225
|
+
hyp list cluster-stack
|
|
225
226
|
|
|
226
|
-
# List stacks in specific region
|
|
227
|
-
hyp list
|
|
227
|
+
# List stacks in a specific region
|
|
228
|
+
hyp list cluster-stack --region us-east-1
|
|
228
229
|
"""
|
|
229
230
|
logger = setup_logging(logging.getLogger(__name__), debug)
|
|
230
231
|
|
|
@@ -242,7 +243,7 @@ def list_cluster_stacks(region, debug, status):
|
|
|
242
243
|
|
|
243
244
|
logger.debug(f"Listing stacks in region: {region or 'default'}")
|
|
244
245
|
|
|
245
|
-
click.echo(f"📋
|
|
246
|
+
click.echo(f"📋 CloudFormation Stacks ({len(stack_summaries)} found)")
|
|
246
247
|
|
|
247
248
|
if stack_summaries:
|
|
248
249
|
for i, stack in enumerate(stack_summaries, 1):
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/init.py
RENAMED
|
@@ -4,7 +4,7 @@ import sys
|
|
|
4
4
|
import shutil
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
from datetime import datetime
|
|
7
|
-
from jinja2 import
|
|
7
|
+
from jinja2.sandbox import ImmutableSandboxedEnvironment
|
|
8
8
|
from sagemaker.hyperpod.cli.constants.init_constants import (
|
|
9
9
|
USAGE_GUIDE_TEXT_CFN,
|
|
10
10
|
USAGE_GUIDE_TEXT_CRD,
|
|
@@ -435,7 +435,12 @@ def _create_standard_template(dir_path: Path, data: dict, template: str, version
|
|
|
435
435
|
|
|
436
436
|
try:
|
|
437
437
|
template_source = jinja_file.read_text()
|
|
438
|
-
|
|
438
|
+
# Render template manifests inside a sandboxed Jinja2 environment so
|
|
439
|
+
# that template expressions cannot access unsafe Python attributes or
|
|
440
|
+
# callables. This matches the sandboxed rendering used elsewhere
|
|
441
|
+
# (recipe_utils._render_k8s_template) and keeps the two paths aligned.
|
|
442
|
+
env = ImmutableSandboxedEnvironment()
|
|
443
|
+
tpl = env.from_string(template_source)
|
|
439
444
|
rendered = tpl.render(**data)
|
|
440
445
|
except Exception as e:
|
|
441
446
|
click.secho(f"❌ Failed to render template: {e}", fg="red")
|
|
@@ -355,6 +355,11 @@ class HpClusterStack(ClusterStackBase):
|
|
|
355
355
|
.. note::
|
|
356
356
|
Stack listings are region-specific. If no region is provided, uses the default region from your AWS configuration.
|
|
357
357
|
|
|
358
|
+
.. note::
|
|
359
|
+
This method does not filter results to HyperPod-related stacks. The
|
|
360
|
+
CloudFormation ListStacks API does not return stack tags, so callers
|
|
361
|
+
that need a specific subset must make additional API calls.
|
|
362
|
+
|
|
358
363
|
**Parameters:**
|
|
359
364
|
|
|
360
365
|
.. list-table::
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0/src/sagemaker_hyperpod.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sagemaker-hyperpod
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.13.0
|
|
4
4
|
Summary: Amazon SageMaker HyperPod SDK and CLI
|
|
5
5
|
Home-page: https://github.com/aws/sagemaker-hyperpod-cli
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -240,12 +240,14 @@ hyp create --region <region>
|
|
|
240
240
|
|
|
241
241
|
**Note**: The region flag is optional. If not provided, the command will use the default region from your AWS credentials configuration.
|
|
242
242
|
|
|
243
|
-
#### List
|
|
243
|
+
#### List CloudFormation Stacks
|
|
244
244
|
|
|
245
245
|
```bash
|
|
246
246
|
hyp list cluster-stack
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
+
**Note**: This command lists all CloudFormation stacks in the current AWS account and Region. It does not currently filter the results to HyperPod-created stacks.
|
|
250
|
+
|
|
249
251
|
| Option | Type | Description |
|
|
250
252
|
|--------|------|-------------|
|
|
251
253
|
| `--region <region>` | Optional | The AWS region to list stacks from. |
|
|
@@ -1061,14 +1063,16 @@ cluster_stack = HpClusterStack(
|
|
|
1061
1063
|
response = cluster_stack.create(region="us-east-2")
|
|
1062
1064
|
```
|
|
1063
1065
|
|
|
1064
|
-
#### Listing
|
|
1066
|
+
#### Listing CloudFormation Stacks
|
|
1065
1067
|
|
|
1066
1068
|
```python
|
|
1067
|
-
# List all
|
|
1069
|
+
# List all CloudFormation stacks in the Region
|
|
1068
1070
|
stacks = HpClusterStack.list(region="us-east-2")
|
|
1069
1071
|
print(f"Found {len(stacks['StackSummaries'])} stacks")
|
|
1070
1072
|
```
|
|
1071
1073
|
|
|
1074
|
+
**Note**: `HpClusterStack.list()` returns all CloudFormation stacks in the current account and Region; it does not filter to HyperPod cluster stacks.
|
|
1075
|
+
|
|
1072
1076
|
#### Describing a Cluster Stack
|
|
1073
1077
|
|
|
1074
1078
|
```python
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/cluster_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/commands/space.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/common_utils.py
RENAMED
|
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
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/hyp_cli.py
RENAMED
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/init_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/recipe_utils.py
RENAMED
|
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
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/space_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/cli/training_utils.py
RENAMED
|
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
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/__init__.py
RENAMED
|
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
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/common/utils.py
RENAMED
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/inference/constant.py
RENAMED
|
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
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/space/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/space/utils.py
RENAMED
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/training/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker/hyperpod/training/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker_hyperpod.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker_hyperpod.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sagemaker_hyperpod-3.12.0 → sagemaker_hyperpod-3.13.0}/src/sagemaker_hyperpod.egg-info/zip-safe
RENAMED
|
File without changes
|