Skip to content

Print change request ID in a way that can be consumed by the shell or invoking programs via output redirection when using --draft #579

@segevfiner

Description

@segevfiner

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

When using --draft/--draft=new to create a new draft change request, the created ID is printed in the format Change request created: <id>, this is not very amenable to grabbing the ID via output redirection to later use it to submit further updates to the draft, e.g.

CHANGE_REQUEST_ID=$(pulumi env set --draft foo bar qux)
pulumi env set --draft=$CHANGE_REQUEST_ID foo bar2 qux2)
# And then this part seems missing from the CLI: pulumi env approve $CHANGE_REQUEST_ID

Affected area/feature

Pulumi ESC CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions