-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
--stack option broken in pulumi CLI #2880
Comments
@arun-gupta -- FYI. |
There's a related discussion in #2614 This is fallout from changing stack identities to include the project name. The code we use to parse stack names, used throughout the CLI, will attempt to lookup the project name if it wasn't included in the stack name. It does this by looking for the project name in The fix is to be smarter about this in In the meantime, this can be worked around by specifying a fully qualified stack name that includes the project name, e.g.:
|
I'll take a swing at this while Matt is out. |
@chrsmith, mind if I take this? I already have a bunch of context paged in memory. |
Some cases to consider:
|
I'll be able to fix this with tests when #3065 is reviewed and merged |
Agreed. Same for
Currently, it takes the default value of the folder name. I think this makes sense, at least I go forward with the suggested default most of the time. I suggest to keep it.
These are tricky:
My preference would be bring Keeping #3076 in mind, it makes sense to me to just have three independent arguments for the owner, project, and stack. |
Use Case: In order to enable automation of multiple stacks within one project or multiple projects, a user may need to non-interactively program the stack option in 1 go.
$ mkdir myeks && cd myeks && pulumi new aws-typescript --name myeks --description "my eks cluster" -c aws:region=us-west-2
works as expected however$ mkdir myeks && cd myeks && pulumi new aws-typescript --name myeks --description "my eks cluster" -c aws:region=us-west-2 --stack d-nishi/dev
throws the following error:error: no Pulumi project found in the current working directory.
The text was updated successfully, but these errors were encountered: