actions icon indicating copy to clipboard operation
actions copied to clipboard

Support for copy config similar to the CLI

Open johnkors opened this issue 3 years ago • 2 comments

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

I'm creating stacks on every PR, but as part of it I need to copy configuration from another stack. The config-map parameter wants the input in a YAML-format, but the CLI (pulumi config) only provides tabular or json formats.

It would be nice if there was a way to copy config ala pulumi config cp in the CLI where you provide a from (--stack) and to --dest) in addition to config-map.

As a workaround, I'm using the Pulumi CLI directly instead of the action — but pulumi config cp --non-interactive removes all output from any subsequent usage of the GitHub action.

Affected area/feature

johnkors avatar Sep 26 '22 13:09 johnkors

@cobraz do you think this is something we'd want to support? Does a config cp jive with your vision for the Action's API?

RobbieMcKinstry avatar Oct 14 '22 16:10 RobbieMcKinstry