pulumi/pkg
Joe Duffy 6dc16a5548
Make cloud authentication more intuitive (#738)
The prior behavior with cloud authentication was a bit confusing
when authenticating against anything but https://pulumi.com/.  This
change fixes a few aspects of this:

* Improve error messages to differentiate between "authentication
  failed" and "you haven't logged into the target cloud URL."

* Default to the cloud you're currently authenticated with, rather
  than unconditionally selecting https://pulumi.com/.  This ensures

      $ pulumi login -c https://api.moolumi.io
      $ pulumi stack ls

  works, versus what was currently required

      $ pulumi login -c https://api.moolumi.io
      $ pulumi stack ls -c https://api.moolumi.io

  with confusing error messages if you forgot the second -c.

* To do this, our default cloud logic changes to

    1) Prefer the explicit -c if supplied;

    2) Otherwise, pick the "currently authenticated" cloud; this is
       the last cloud to have been targeted with pulumi login, or
       otherwise the single cloud in the list if there is only one;

    3) https://pulumi.com/ otherwise.
2017-12-16 07:49:41 -08:00
..
backend Make cloud authentication more intuitive (#738) 2017-12-16 07:49:41 -08:00
compiler/errors Use Stack over Environment to describe a deployment target 2017-10-16 13:04:20 -07:00
diag Allow users to control if and how output is colorized. (#718) 2017-12-14 11:53:02 -08:00
encoding Use go-yaml directly 2017-10-20 14:01:37 -07:00
engine Pass planning flag to print resource outputs (#737) 2017-12-16 07:33:58 -08:00
graph Rename pulumi-fabric to pulumi 2017-09-21 19:18:21 -07:00
operations Use AWS access key in operations prvider when available (#697) 2017-12-11 15:40:39 -08:00
pack Save configuration under the stack by default (#696) 2017-12-11 14:41:57 -08:00
resource Only pass old inputs to Check. 2017-12-15 11:04:43 -08:00
testing Add a framework for baselining and validating pulumi-update diff output. (#700) 2017-12-14 17:10:05 -08:00
tokens Rename pulumi-fabric to pulumi 2017-09-21 19:18:21 -07:00
tools Rename pulumi-fabric to pulumi 2017-09-21 19:18:21 -07:00
util Allow users to control if and how output is colorized. (#718) 2017-12-14 11:53:02 -08:00
version Add a manifest to checkpoint files (#630) 2017-12-01 13:50:32 -08:00
workspace Make cloud authentication more intuitive (#738) 2017-12-16 07:49:41 -08:00