https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
general
  • f

    fast-dinner-32080

    03/13/2020, 8:18 PM
    What is the prefered way to install a plugin that I generated locally? I am working on converting this project https://github.com/rancher/terraform-provider-rke and was able to get it to build for dotnet using the boilerplate project and build the plugin. I was able to manually create the plugin directory and copy the binary to it and wondered if that is basically the correct way until it is published somewhere?
  • b

    billowy-army-68599

    03/13/2020, 8:19 PM
    @fast-dinner-32080 I literally just finished creating that yesterday! https://github.com/jaxxstorm/pulumi-rke
  • f

    fast-dinner-32080

    03/13/2020, 8:19 PM
    Oh wow!
  • b

    billowy-army-68599

    03/13/2020, 8:19 PM
    it's on the
    development
    branch for now
  • b

    billowy-army-68599

    03/13/2020, 8:20 PM
    that's the correct way I believe as well. I've got some ideas around community providers and support for installing plugins from github releases. currently the plugin install cli just expects a http server address, so if you want someone else to install it you have to put it in a filebucket somewhere
  • b

    billowy-army-68599

    03/13/2020, 8:22 PM
    in any case, I'll be working on getting the RKE provider moved to the pulumi org next week..
  • f

    fast-dinner-32080

    03/13/2020, 8:22 PM
    Yea that was what I figured by looking at the cli options.
  • f

    fast-dinner-32080

    03/13/2020, 8:23 PM
    Okay cool, I guess I will stop working on it myself and check out your repo 😄
  • f

    fast-dinner-32080

    03/13/2020, 8:23 PM
    My use case is for a dotnet provider
  • f

    fast-dinner-32080

    03/13/2020, 8:23 PM
    but building the rest will be useful
  • b

    billowy-army-68599

    03/13/2020, 8:24 PM
    i haven't fully checked the dotnet provider, but the python, go and nodejs packages work, so there's no reason the dotnet ones wouldn't
  • f

    fast-dinner-32080

    03/13/2020, 8:37 PM
    I just tested mine and it seemed to work so I am sure yours does too. Not sure the correct way to get it to push the nuget package. Since you already have it setup for the others then that would be the next step. Then I can just swap to that nuget and give it a test.
  • b

    billowy-army-68599

    03/13/2020, 8:39 PM
    i'll have a look now
    👍 1
  • f

    fast-dinner-32080

    03/13/2020, 8:54 PM
    They also just released 1.0.0-rc4 of the terraform provider.
  • b

    billowy-army-68599

    03/13/2020, 8:59 PM
    oh nice, I'll update it
  • b

    billowy-army-68599

    03/13/2020, 9:00 PM
    I'm just reverse engineering how the providers are published, bear with me 🙂
  • f

    fast-dinner-32080

    03/13/2020, 9:04 PM
    Looks to run this script https://github.com/pulumi/scripts/blob/master/ci/publish-tfgen-package
  • f

    fast-dinner-32080

    03/13/2020, 9:05 PM
    So it needs this set NUGET_PUBLISH_KEY
  • b

    billowy-army-68599

    03/13/2020, 9:12 PM
    👍 unfortunately the template hardcodes a lot of Pulumi stuff, so I'm fixing that up as well https://github.com/pulumi/pulumi-terraform-bridge/blob/954a819dc381b5908d2e726da98e1e441cedd5f4/pkg/tfgen/generate_csharp_templates.go#L96-L97
  • f

    fast-dinner-32080

    03/13/2020, 9:19 PM
    Oh yea i see what you mean. Seems like some more things to make configurable for community providers. 😄
  • b

    billowy-army-68599

    03/13/2020, 9:20 PM
    I'll be working on that after the 25th I hope 😉
    🎉 1
  • b

    billowy-army-68599

    03/13/2020, 9:23 PM
    okay, should be there now
    Install-Package Pulumi.Rke -Version 0.0.1-preview-dev.1584134192
  • r

    red-salesclerk-85731

    03/13/2020, 10:33 PM
    Sitting here with a big smile on my face – we just plugged in Pulumi to our CI/CD for the first time seeing these checks and everything is awesome! Thanks for building this great product @echoing-match-29901!
    👍 2
    💯 3
    😍 2
  • w

    worried-painting-67291

    03/13/2020, 11:22 PM
    Hey all. How am I supposed to create a stack on disk that is part of an existing project? When I run pulumi new, and it asks me for the project, I enter the project name and it says that name already exists
  • w

    worried-painting-67291

    03/13/2020, 11:22 PM
    and.. well. that's kind of the point
  • w

    worried-painting-67291

    03/13/2020, 11:24 PM
    also.. if I try to convert an existing project {really I just need the index.ts and the Pulumi.<stack>.yaml yes? When I try to run pulumi up I get this error
    error: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
  • w

    worried-painting-67291

    03/13/2020, 11:25 PM
    I'm a bit frustrated because I can't find any examples for how to actually compose several stacks under a project on disk
  • w

    worried-painting-67291

    03/13/2020, 11:25 PM
    this is the only documentation i can find on the subject and it offers no details, just philosophy : https://www.pulumi.com/docs/intro/concepts/organizing-stacks-projects/
  • f

    fast-dinner-32080

    03/13/2020, 11:28 PM
    You would use the same project and in the root run
    pulumi stack init STACK_NAME
    Which will create it and select it to be used. From there you can add to that stacks config and run pulumi up against it.
  • f

    fast-dinner-32080

    03/13/2020, 11:28 PM
    You can then switch stacks by running pulumi stack select
Powered by Linen
Title
f

fast-dinner-32080

03/13/2020, 11:28 PM
You can then switch stacks by running pulumi stack select
View count: 1