Space#
Complete reference for Amazon SageMaker Space management commands and configuration options.
Note
Region Configuration: For commands that accept the --region option, if no region is explicitly provided, the command will use the default region from your AWS credentials configuration.
hyp create hyp-space#
Create a space resource on SageMaker HyperPod clusters.
Syntax#
hyp create hyp-space [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
No |
Schema version to use |
|
TEXT |
Yes |
Space name |
|
TEXT |
Yes |
Display Name of the space |
|
TEXT |
No |
Kubernetes namespace |
|
TEXT |
No |
Image specifies the container image to use |
|
TEXT |
No |
DesiredStatus specifies the desired operational status |
|
TEXT |
No |
OwnershipType specifies who can modify the space (‘Public’ or ‘OwnerOnly’) |
|
TEXT |
No |
NodeSelector specifies node selection constraints for the space pod (JSON string) |
|
TEXT |
No |
Affinity specifies node affinity and anti-affinity rules for the space pod (JSON string) |
|
TEXT |
No |
Tolerations specifies tolerations for the space pod to schedule on nodes with matching taints (JSON string) |
|
TEXT |
No |
Lifecycle specifies actions that the management system should take in response to container lifecycle events (JSON string) |
|
TEXT |
No |
AppType specifies the application type for this workspace |
|
TEXT |
No |
ServiceAccountName specifies the name of the ServiceAccount to use for the workspace pod |
|
TEXT |
No |
Idle shutdown configuration. Format: enabled= |
|
TEXT |
No |
TemplateRef references a WorkspaceTemplate to use as base configuration. Format: name= |
|
TEXT |
No |
Container configuration. Format: command= |
|
TEXT |
No |
Storage configuration. Format: storageClassName= |
|
TEXT |
No |
Volume configuration. Format: name= |
|
TEXT |
No |
Fractional GPU partition count, e.g. ‘1’ |
|
TEXT |
No |
Fractional GPU partition type, e.g. ‘mig-3g.20gb’ |
|
TEXT |
No |
GPU resource limit, e.g. ‘1’ |
|
TEXT |
No |
GPU resource request, e.g. ‘1’ |
|
TEXT |
No |
Memory resource limit, e.g. ‘2Gi’ |
|
TEXT |
No |
Memory resource request, e.g. ‘2Gi’ |
|
TEXT |
No |
CPU resource limit, e.g. ‘500m’ |
|
TEXT |
No |
CPU resource request, e.g. ‘500m’ |
Example#
hyp create hyp-space --version 1.0 --name my-space --namespace default
Space Management Commands#
Commands for managing Amazon SageMaker Spaces.
hyp list hyp-space#
List all spaces in a namespace or across all namespaces.
Syntax#
hyp list hyp-space [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
No |
Kubernetes namespace (default: “default”) |
|
FLAG |
No |
List spaces across all namespaces |
|
TEXT |
No |
Output format: table or json (default: “table”) |
Examples#
# List spaces in default namespace
hyp list hyp-space
# List spaces in specific namespace
hyp list hyp-space --namespace my-namespace
# List spaces across all namespaces
hyp list hyp-space --all-namespaces
# List spaces with JSON output
hyp list hyp-space --output json
hyp describe hyp-space#
Describe a specific space resource.
Syntax#
hyp describe hyp-space [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space to describe |
|
TEXT |
No |
Kubernetes namespace (default: “default”) |
|
TEXT |
No |
Output format: yaml or json (default: “yaml”) |
Example#
hyp describe hyp-space --name my-space --namespace default --output yaml
hyp update hyp-space#
Update an existing space resource.
Syntax#
hyp update hyp-space [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
No |
Schema version to use |
|
TEXT |
Yes |
Space name |
|
TEXT |
No |
Display Name of the space |
|
TEXT |
No |
Kubernetes namespace |
|
TEXT |
No |
Image specifies the container image to use |
|
TEXT |
No |
DesiredStatus specifies the desired operational status |
|
TEXT |
No |
OwnershipType specifies who can modify the space (‘Public’ or ‘OwnerOnly’) |
|
TEXT |
No |
NodeSelector specifies node selection constraints for the space pod (JSON string) |
|
TEXT |
No |
Affinity specifies node affinity and anti-affinity rules for the space pod (JSON string) |
|
TEXT |
No |
Tolerations specifies tolerations for the space pod to schedule on nodes with matching taints (JSON string) |
|
TEXT |
No |
Lifecycle specifies actions that the management system should take in response to container lifecycle events (JSON string) |
|
TEXT |
No |
AppType specifies the application type for this workspace |
|
TEXT |
No |
ServiceAccountName specifies the name of the ServiceAccount to use for the workspace pod |
|
TEXT |
No |
Idle shutdown configuration. Format: enabled= |
|
TEXT |
No |
TemplateRef references a WorkspaceTemplate to use as base configuration. Format: name= |
|
TEXT |
No |
Container configuration. Format: command= |
|
TEXT |
No |
Volume configuration. Format: name= |
|
TEXT |
No |
Fractional GPU partition count, e.g. ‘1’ |
|
TEXT |
No |
Fractional GPU partition type, e.g. ‘mig-3g.20gb’ |
|
TEXT |
No |
GPU resource limit, e.g. ‘1’ |
|
TEXT |
No |
GPU resource request, e.g. ‘1’ |
|
TEXT |
No |
Memory resource limit, e.g. ‘2Gi’ |
|
TEXT |
No |
Memory resource request, e.g. ‘2Gi’ |
|
TEXT |
No |
CPU resource limit, e.g. ‘500m’ |
|
TEXT |
No |
CPU resource request, e.g. ‘500m’ |
Example#
hyp update hyp-space --version 1.0 --name my-space --namespace default
hyp delete hyp-space#
Delete a space resource.
Syntax#
hyp delete hyp-space [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space to delete |
|
TEXT |
No |
Kubernetes namespace (default: “default”) |
Example#
hyp delete hyp-space --name my-space --namespace default
hyp start hyp-space#
Start a space resource.
Syntax#
hyp start hyp-space [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space to start |
|
TEXT |
No |
Kubernetes namespace (default: “default”) |
Example#
hyp start hyp-space --name my-space --namespace default
hyp stop hyp-space#
Stop a space resource.
Syntax#
hyp stop hyp-space [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space to stop |
|
TEXT |
No |
Kubernetes namespace (default: “default”) |
Example#
hyp stop hyp-space --name my-space --namespace default
hyp get-logs hyp-space#
Get logs from a space resource.
Syntax#
hyp get-logs hyp-space [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space to get logs from |
|
TEXT |
No |
Kubernetes namespace (default: “default”) |
|
TEXT |
No |
Name of the specific pod to get logs from |
|
TEXT |
No |
Name of the specific container to get logs from |
Example#
hyp get-logs hyp-space --name my-space --namespace default --pod-name my-pod
hyp portforward hyp-space#
Port forward to a space resource for local development access.
Syntax#
hyp portforward hyp-space [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space to port forward to |
|
TEXT |
No |
Kubernetes namespace (default: “default”) |
|
TEXT |
No |
Local port to forward from (default: “8888”) |
Examples#
# Port forward with default port (8888)
hyp portforward hyp-space --name my-space
# Port forward with custom local port
hyp portforward hyp-space --name my-space --local-port 8080
# Port forward to space in specific namespace
hyp portforward hyp-space --name my-space --namespace my-namespace --local-port 8080
Access the space via http://localhost:<local-port> after port forwarding is established. Press Ctrl+C to stop port forwarding.
Space Access Commands#
Commands for managing space access resources.
hyp create hyp-space-access#
Create a space access resource for remote connection to a space.
Syntax#
hyp create hyp-space-access [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space to create access for |
|
TEXT |
No |
Kubernetes namespace (default: “default”) |
|
TEXT |
No |
Remote access type: vscode-remote or web-ui (default: “vscode-remote”) |
Example#
hyp create hyp-space-access --name my-space --namespace default --connection-type vscode-remote
Space Template Commands#
Commands for managing space template resources.
hyp create hyp-space-template#
Create a space template resource from a YAML configuration file.
Syntax#
hyp create hyp-space-template [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
YAML file containing the template configuration |
Example#
hyp create hyp-space-template --file my-template.yaml
hyp list hyp-space-template#
List all space template resources.
Syntax#
hyp list hyp-space-template [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
No |
Kubernetes namespace |
|
FLAG |
No |
List spaces across all namespaces |
|
TEXT |
No |
Output format: table or json (default: “table”) |
Example#
hyp list hyp-space-template --namespace default --output table
hyp describe hyp-space-template#
Describe a specific space template resource.
Syntax#
hyp describe hyp-space-template [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space template to describe |
|
TEXT |
No |
Kubernetes namespace |
|
TEXT |
No |
Output format: yaml or json (default: “yaml”) |
Example#
hyp describe hyp-space-template --name my-template --namespace default --output yaml
hyp update hyp-space-template#
Update an existing space template resource.
Syntax#
hyp update hyp-space-template [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space template to update |
|
TEXT |
No |
Kubernetes namespace |
|
TEXT |
Yes |
YAML file containing the updated template configuration |
Example#
hyp update hyp-space-template --name my-template --namespace default --file updated-template.yaml
hyp delete hyp-space-template#
Delete a space template resource.
Syntax#
hyp delete hyp-space-template [OPTIONS]
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
TEXT |
Yes |
Name of the space template to delete |
|
TEXT |
No |
Kubernetes namespace |
Example#
hyp delete hyp-space-template --name my-template --namespace default