Add Setup CLI#222
Merged
Merged
Conversation
Click-based wrapper around the four cloud_setup functions (bootstrap, register, status, teardown). The Python API stays untouched; this is a thin interactive layer with Rich prompts, deployment-plan preview, destructive-action confirmation, and clean RuntimeError → exit code translation. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
shchur
reviewed
May 26, 2026
| table.add_row("Stack", report.config.stack_name) | ||
| table.add_section() | ||
| for check_name, result in report.checks.items(): | ||
| color = "green" if result.startswith("ok") else "red" |
Collaborator
There was a problem hiding this comment.
Stack status CREATE_COMPLETE is colored red - this looks wrong
| default_stack = f"ag-cloud-{backend.replace('_', '-')}" | ||
| stack_name = Prompt.ask("Stack name", default=default_stack) | ||
| effective_stack = stack_name | ||
| template_url = f"https://github.com/autogluon/autogluon-cloud/blob/master/cloudformation/ag_cloud_{backend}.yaml" |
Collaborator
There was a problem hiding this comment.
Let's change this to the URL pointing to the correct stable branch (e.g. 0.5.0) in the follow-up PR where we also get rid of the copy-on-setup logic for CFN templates
|
|
||
|
|
||
| @cli.command() | ||
| @click.option("--backend", type=click.Choice(SUPPORTED_BACKENDS), default=None, help="Which backend to use.") |
Collaborator
There was a problem hiding this comment.
Let's hide the ray_aws backend for now? We are not properly testing it and we don't want to highlight it in the next release IMO
- Replace SUPPORTED_BACKENDS with local _CLI_BACKENDS = ("sagemaker",);
ray_aws is hidden from the CLI until it is properly tested
- bootstrap: --backend now defaults to "sagemaker" (no prompt)
- status: paint *_COMPLETE stack states green, not red
- Trim verbose paragraph from module docstring
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
Following up #213
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.