This message was deleted.
# contribute
s
This message was deleted.
s
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
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
Are you running
pulumi up
directly in the template dir?
w
yeah, directly in the newly created template directory.
s
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
ah I see. so
pulumi new <https://github.com/dewan-ahmed/pulumi-templates/tree/master/aiven-typescript>
?
s
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
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
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
sweet! I was actually doing ⬇️ without realizing that this is the confirmation step 😄
Copy code
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
Thank you for your contribution!
pulumi up -y
will auto-confirm. (Obviously not recommended for production infra.)
w
s
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
Will do 🙏🏽 thanks