https://pulumi.com logo
#general
Title
# general
w

worried-queen-62794

04/13/2021, 2:08 AM
Is there a way to ensure that a stack is using the correct backend? Having to remember to log in and out all the time is very error prone.
Or is the backend available via the API somewhere?
r

red-match-15116

04/13/2021, 2:12 AM
You can set the backend as a project-level setting with the backend.url key in
Pulumi.yaml
or as an operation-level setting with the
PULUMI_BACKEND_URL
env var.
w

worried-queen-62794

04/13/2021, 2:12 AM
Cool thanks
w

white-balloon-205

04/13/2021, 2:38 AM
We are also likely to start storing the backend info in the stack file in the future to address this scenario even more directly. https://github.com/pulumi/pulumi/issues/2996 is an issue tracking this.
👍 2