bored-barista-23480
10/27/2021, 3:04 PMpulumi new
also works with any repo containing a template - that would solve the problem and make it even easier for the user. But I get error: authentication required
trying to do so. But I can't find any hints how to authenticate using the command. Any suggestions?witty-candle-66007
10/27/2021, 4:06 PMbored-barista-23480
10/27/2021, 4:19 PMpulumi new .
gives me the error no template
.witty-candle-66007
10/27/2021, 7:24 PMgit clone <https://foo.git>
• cd foo # Assuming that’s the name of folder with the cloned repo
• pulumi new . --force
# I would expect that you would get a different error if you didn’t use --forcePulumi.yaml
file?bored-barista-23480
10/28/2021, 1:45 PM--force
gives me an error due to the directory not being empty. Using it there's an error trying to write a new Pulumi.yaml
(because obviously the file already exists, its the template after all). I also tried using the --dir
flag to separate template and project and create the project in a new, empty directory (which already seems bodged, as I would essentially just copy everything). But that just gives me template 'foo' not found
. The Pulumi.yaml
is definitely in the directory.witty-candle-66007
10/28/2021, 3:44 PMgit clone xxxxx
# This brings down a project called test-project
• cd test-project
• # This test-project folder looks like this:
-rw-r--r-- 1 mitch staff 32 Oct 28 08:41 Pulumi.dev.yaml
-rw-r--r-- 1 mitch staff 91 Oct 28 08:41 Pulumi.yaml
-rw-r--r-- 1 mitch staff 79 Oct 28 08:41 README.md
-rw-r--r-- 1 mitch staff 290 Oct 28 08:41 index.ts
-rw-r--r-- 1 mitch staff 96651 Oct 28 08:41 package-lock.json
-rw-r--r-- 1 mitch staff 227 Oct 28 08:41 package.json
-rw-r--r-- 1 mitch staff 438 Oct 28 08:41 tsconfig.json
• I can then do pulumi new . --force
and things work as expected.bored-barista-23480
11/01/2021, 1:13 PM