Skip to content

Commit

Permalink
better dryrun (#512)
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Smith <[email protected]>
  • Loading branch information
sean-smith authored Dec 9, 2024
1 parent dc38a7f commit 191723c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1.architectures/5.sagemaker-hyperpod/easy-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ add_keypair_to_cluster
echo -e "\nNow you can run:\n"
echo -e "$ ${GREEN}ssh ${cluster_name}${NC}"

[[ DRY_RUN -eq 1 ]] && exit 0
[[ DRY_RUN -eq 1 ]] && echo -e "\n${GREEN}aws ssm start-session "${aws_cli_args[@]}" --target sagemaker-cluster:${cluster_id}_${node_group}-${instance_id}${NC}\n" && exit 0

# Start session as Ubuntu only if the SSM-SessionManagerRunShellAsUbuntu document exists.
if aws ssm describe-document "${aws_cli_args[@]}" --name SSM-SessionManagerRunShellAsUbuntu > /dev/null 2>&1; then
Expand Down

0 comments on commit 191723c

Please sign in to comment.