feat(deploy): show resource name and id in deploy output#1254
Open
MichaelHogers wants to merge 9 commits intomainfrom
Open
feat(deploy): show resource name and id in deploy output#1254MichaelHogers wants to merge 9 commits intomainfrom
MichaelHogers wants to merge 9 commits intomainfrom
Conversation
When using the -o flag, the deploy output now includes the resource name and physical ID (UUID) for each created or updated resource. This makes it easier to identify deployed resources programmatically.
Gate the resource name and physicalId lines behind the --output flag so --preview output remains unchanged.
Use per-resource toContain blocks that verify name: lines while tolerating dynamic id: lines with UUIDs.
Verify the full output structure including name and id lines, using a UUID pattern for dynamic physical IDs.
Member
|
Since the new format is an extension of the current format, I feel like it would be appropriate to simply call it verbose mode and change the flag to |
Keep -o/--output unchanged (no breaking change) and add -v/--verbose as an opt-in flag to show resource names and physical IDs.
Using -v alone now shows deploy output with resource details, no need to also pass -o.
Contributor
Author
|
@sorccu what about this latest version |
Contributor
Author
|
@sorccu i've been thinking, can we always return the id, instead of only in verbose mode? i think it is always useful to know the id? |
Member
|
Can you update the description to include an example of how the ID would be used? Also, possibly premature if we change the PR again, but the description now refers to flags that no longer exist. |
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.
Summary
-oflag, deploy output now includes the resource name and physical ID (UUID) for each created or updated resource-ooutputBefore
After
Motivation
The deploy API response already contains
physicalId(UUID) for each resource, but the CLI discarded it. Surfacing it makes deployed resources easier to identify programmatically (e.g. by AI agents or CI scripts that need to reference checks by ID after deploy).Test plan
-oflag and verify name + id appear for created/updated resources-oflag — output unchanged-p) — verify name shown (no physicalId in preview since it's a dry run)