Skip to content

Detect multiple esc run -- cmd in a session and recommend alternatives #575

@pose

Description

@pose

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 new to the Pulumi ecosystem so I was invoking pulumi this way:

esc run myorg/myenv -- pulumi preview
esc run myorg/myenv -- pulumi up
# Code changes
esc run myorg/myenv -- pulumi preview
esc run myorg/myenv -- pulumi up
# Code changes
esc run myorg/myenv -- pulumi preview
esc run myorg/myenv -- pulumi up

Questions:

  • Could we detect through env if the user is doing a lot of esc run and suggest either:
    • eval $(pulumi env open -f shell myorg/myenv)
    • Add to the Pulumi.my-stack.yaml file an environment entry for myorg/myenv.

Also, @rgharris suggested an alternative approach that could be an opt-in configuration via the ESC yaml like:

imports:
    - #pulumi-context

That could be included that in the empty template/when creating a new env from pulumi config so you get it by default for future envs.

Discarded Approach

Affected area/feature

esc / pulumi/pulumi

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions