Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pulumi login respect configuration in Pulumi.yaml #1120

Open
tgummerer opened this issue Feb 9, 2024 · 2 comments
Open

Make pulumi login respect configuration in Pulumi.yaml #1120

tgummerer opened this issue Feb 9, 2024 · 2 comments
Labels
kind/enhancement Improvements or new features

Comments

@tgummerer
Copy link
Contributor

While working on #1081, we noticed that pulumi login wasn't respecting the configuration in Pulumi.yaml, and thus errored out when no cloud-url was given in the action. We should improve pulumi login, so it takes the setting in Pulumi.yaml into account if that file is available to reduce confusion for users.

/xref https://github.com/pulumi/home/issues/3298

@justinvp justinvp added the kind/enhancement Improvements or new features label Feb 12, 2024
@renannprado
Copy link
Contributor

I'm facing the same issue.

Workaround:

- id: prepare
  run: |
    cloudUrl=`cat Pulumi.yaml | yq '.backend.url'`
    echo "cloudUrl=$cloudUrl" >> $GITHUB_OUTPUT

@Frassle Frassle transferred this issue from pulumi/pulumi Mar 13, 2024
@Frassle
Copy link
Member

Frassle commented Mar 13, 2024

OK had a look into this and pulumi login does respect the backend set in the Pulumi.yaml. It looks like the issue is actions isn't running the initial login command in the same directory as all the other commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

4 participants