https://pulumi.com logo
Title
w

worried-engine-19547

12/09/2022, 7:38 PM
Hi, I must be missing something super basic. I’ve forked the templates repo, added two folders for https://github.com/dewan-ahmed/pulumi-templates/tree/master/aiven-python and https://github.com/dewan-ahmed/pulumi-templates/tree/master/aiven-typescript but when I go for
pulumi up
, I see:
error: could not create stack: provided project name "--PROJECT-" doesn't match Pulumi.yaml
I see the same error when I try to
pulumi up
on an existing package as well. I already configured the credential
export AIVEN_TOKEN=XXXXXXXXXXXXXX
which seemed like the only config I needed. What is it that I’m missing with the project name 🤔 ?
s

stocky-restaurant-98004

12/09/2022, 7:54 PM
Project name comes from
Pulumi.yaml
.
name: ${PROJECT}
<-- I think that's why it's freaking out.
You can run templates from an explicit path URL. Is that how you're testing?
w

worried-engine-19547

12/09/2022, 7:58 PM
I was trying to follow other examples and it seems all of them had
name: ${PROJECT}
I created a new folder for the new template, added the files, and then tried
pulumi up
in that directory (only config I did was
export AIVEN_TOKEN=XXXXXXXX
)
s

stocky-restaurant-98004

12/09/2022, 7:58 PM
Are you running
pulumi up
directly in the template dir?
w

worried-engine-19547

12/09/2022, 7:59 PM
yeah, directly in the newly created template directory.
s

stocky-restaurant-98004

12/09/2022, 7:59 PM
I've never written a template so IDK for sure, but what you're doing may not be possible. You might have to push it to git and then
pulumi new <https://github.com>......
in order to test.
w

worried-engine-19547

12/09/2022, 8:00 PM
ah I see. so
pulumi new <https://github.com/dewan-ahmed/pulumi-templates/tree/master/aiven-typescript>
?
s

stocky-restaurant-98004

12/09/2022, 8:00 PM
Yeah, something like that
I'm confident that way will at least work even if it's suboptimal. Let me check with the coworkers to see if there's a faster way to do it locally.
w

worried-engine-19547

12/09/2022, 8:06 PM
thanks Josh, much appreciated. So some success here:
pulumi new <https://github.com/dewan-ahmed/pulumi-templates/tree/master/aiven-typescript>
actually asked me about a project name (so no longer complained about the missing $PROJECT), and other details, and then apparently created the resource after I did
pulumi up
. Strangely enough, I don’t see the resource being created on the Aiven console 🤔
s

stocky-restaurant-98004

12/09/2022, 8:15 PM
Try
pulumi new /path/to/template
. It does not appear to be documented, but people who know said it works.
Different region or account, maybe? See what
pulumi refresh
gives you. It'll query for the existence of the resource. It should show no changes.
w

worried-engine-19547

12/09/2022, 9:13 PM
sweet! I was actually doing ⬇️ without realizing that this is the confirmation step 😄
Do you want to perform this update? no
resources are created successfully. I’ll send in a few PRs next week 🙌🏽 thanks a bunch
s

stocky-restaurant-98004

12/09/2022, 9:56 PM
Thank you for your contribution!
pulumi up -y
will auto-confirm. (Obviously not recommended for production infra.)
w

worried-engine-19547

12/09/2022, 10:56 PM
s

stocky-restaurant-98004

12/10/2022, 3:47 PM
Wonderful! This should get the attention of our team via our normal triage process, but if these are not merged promptly, please don't hesitate to follow up with me and I'll ping the right people.
w

worried-engine-19547

12/12/2022, 12:28 PM
Will do 🙏🏽 thanks