Pulumi: `pulumi new` does not support the org-name/stack-name format

Created on 13 Jun 2019  路  4Comments  路  Source: pulumi/pulumi

 pulumi new
Please choose a template: gcp-typescript           A minimal Google Cloud TypeScript Pulumi program
This command will walk you through creating a new Pulumi project.

Enter a value or leave blank to accept the (default), and press <ENTER>.
Press ^C at any time to quit.

project name: (teststack)
project description: (A minimal Google Cloud TypeScript Pulumi program)
Created project 'teststack'

stack name: (dev) MINDBODY-Platform/casey-robertson
Sorry, 'MINDBODY-Platform/casey-robertson' is not a valid stack name. A stack name may only contain alphanumeric, hyphens, underscores, and periods.
stack name: (dev) teststack
Created stack 'teststack'

However, pulumi stack init does support this:

In the same directory as above.....

pulumi stack init MINDBODY-Platform/casey-robertson2
Created stack 'MINDBODY-Platform/casey-robertson2'
kinbug

Most helpful comment

It appears that this also impacts pulumi stack rename:

$ pulumi stack rename <org>/na-dev
Please choose a stack: <org>/na-dev
error: [400] Bad Request: A stack name may only contain alphanumeric, hyphens, underscores, or periods.

All 4 comments

Thanks for reporting this, this is an issue we'll address.

It appears that this also impacts pulumi stack rename:

$ pulumi stack rename <org>/na-dev
Please choose a stack: <org>/na-dev
error: [400] Bad Request: A stack name may only contain alphanumeric, hyphens, underscores, or periods.

Taking from Matt while he is OOO this week.

The above PR fixes the original issue, where we failed to validate MINDBODY-Platform/casey-robertson as a valid stack name when running pulumi new.

However, there are still other bugs related to qualified stack names in this area. Such as the pulumi stack rename issue Luke mentioned, and some subtleties around pulumi new when updating a stack.

Was this page helpful?
0 / 5 - 0 ratings