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
contribute
  • m

    microscopic-dusk-80789

    03/21/2019, 2:08 AM
    (I was thinking like docker cli ---> docker daemon) but it looks like thats not really how it is
  • s

    stocky-spoon-28903

    03/21/2019, 2:08 AM
    No - the CLI hosts the engine
  • m

    microscopic-dusk-80789

    03/21/2019, 2:08 AM
    ah cool thx
  • s

    stocky-spoon-28903

    03/21/2019, 2:13 AM
    Later on in that video has the best guide that I’m aware of to the various moving parts
  • m

    microscopic-dusk-80789

    03/21/2019, 2:43 AM
    Maybe the easiest thing for me to do would be decide on the set of CLI commands I need to support and then basically re-write them (direct from the
    cmd
    folder) as something like HTTP/Rest end points -- focus on only making new stuff/new changes at the edge (like where it reads input from / prints text to the terminal)
  • m

    microscopic-dusk-80789

    03/21/2019, 2:49 AM
    So, I would be in charge of creating that stable interface myself -- and then updating it whenever I need to pull in a new feature and the build breaks 😄
  • i

    incalculable-sundown-82514

    03/21/2019, 2:50 AM
    We do have
    --json
    on many CLI commands whose purpose is to make it easier to script around the CLI so you don’t have to write your own
  • i

    incalculable-sundown-82514

    03/21/2019, 2:50 AM
    if that’s your goal
  • m

    microscopic-dusk-80789

    03/21/2019, 2:50 AM
    oh!! maybe that's what I want !
  • i

    incalculable-sundown-82514

    03/21/2019, 2:51 AM
    e.g.
    ▶ pulumi stack ls --json
    [
      {
        "name": "dev",
        "current": true,
        "lastUpdate": "2019-03-20T23:18:32.000Z",
        "updateInProgress": false,
        "resourceCount": 3,
        "url": "<https://app.pulumi.com/swgillespie/ec2/dev>"
      }
    ]
  • e

    enough-kangaroo-36071

    04/02/2019, 4:37 PM
    👋 how can I help with https://github.com/pulumi/kubernetes-the-prod-way
    c
    • 2
    • 1
  • t

    tall-librarian-49374

    04/04/2019, 10:19 PM
    I did a lightning talk today at F# Exchange conference about the potential use of F# with Pulumi. Many people came to me and asked "yeah, so you said it's experimental and what-not, but can I actually use it? I need something like this so badly". That's just a nudge to you folks to push the cross-language story and .NET in particular further 🙂
    🎉 4
  • s

    stocky-spoon-28903

    04/05/2019, 4:54 PM
    Great news @tall-librarian-49374! How was the rest of the conference?
  • t

    tall-librarian-49374

    04/05/2019, 8:37 PM
    @stocky-spoon-28903 It's a great place to be! The conference is small and cozy, and but so many people are welcoming and great to chat with.
  • s

    stocky-spoon-28903

    04/05/2019, 9:32 PM
    Nice! I haven’t been in a few years, it was always a great conference.
  • h

    helpful-vegetable-35581

    04/06/2019, 10:54 AM
    Given a blog about using python was just published I'm guessing there's been some internal movement towards "yes multi-language"
  • o

    orange-keyboard-57616

    04/16/2019, 6:02 PM
    How can I help with this feature? https://github.com/pulumi/pulumi-kubernetes/issues/449. I'm willing to take a stab at it, but I have a few questions about how to attack it. Also, I want to be sure that it would be a welcomed contribution before starting on it.
    c
    b
    w
    • 4
    • 8
  • b

    boundless-monkey-50243

    04/18/2019, 2:51 PM
    My employer has a Terraform provider (IBM Cloud/Softlayer) that I'd like to layer Pulumi on top of. Is there a step-by-step walkthrough (not just an example--I understand Go but I am not a Go programmer and the time I have available for this is minimal) for creating a Pulumi provider on top of an existing Terraform provider?
    s
    • 2
    • 6
  • s

    square-napkin-14607

    05/07/2019, 2:03 PM
    hello, i started working on a provider for MySQL
    w
    • 2
    • 5
  • h

    handsome-state-26704

    05/30/2019, 1:58 AM
    I believe I have a fix for pulumi-aws#252, but am having a heck of a time creating a pull request via
    make travis_pull_request
    . Basically, I have not been able to configure my build environment correctly, so make always fails near the end. It does work enough to build and install to test the changes.
    w
    s
    • 3
    • 15
  • t

    tall-librarian-49374

    06/04/2019, 3:54 PM
    Examples in
    pulumi-azure
    use
    peerDependencies
    in
    package.json
    . How do I make this thing work locally? Types don't seem to pick up without doing anything...
  • w

    white-balloon-205

    06/04/2019, 3:56 PM
    yarn link @pulumi/azure
    in the example after building locally. The local build links that package on the machine.
  • t

    tall-librarian-49374

    06/04/2019, 4:19 PM
    Hmm, I guess I was doing it wrong. Will try again, thanks.
  • s

    stocky-spoon-28903

    06/04/2019, 4:21 PM
    @tall-librarian-49374 caveat: if your
    ~/.config
    directory is a symlink,
    yarn link
    fails silently
  • t

    tall-librarian-49374

    06/05/2019, 7:23 AM
    Got it working, I guess I had some mess with links/folders/WSL/whatever. Thanks @white-balloon-205 @stocky-spoon-28903
  • s

    shy-receptionist-99213

    06/10/2019, 10:44 PM
    Hi all! I’ve submitted a PR to allow setting backend/cloud url in
    Pulumi.yaml
    https://github.com/pulumi/pulumi/pull/2813 what do you think about this idea?
  • b

    bored-river-53178

    06/17/2019, 3:35 PM
    Hello, I am trying to build pulumi (using https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) and facing errors in the process. Is that the right channel for help?
    t
    w
    • 3
    • 16
  • t

    thousands-telephone-86052

    06/17/2019, 4:39 PM
    message has been deleted
    w
    • 2
    • 3
  • b

    busy-umbrella-36067

    06/27/2019, 2:17 AM
    Anyone able to take a look at this? https://github.com/pulumi/pulumi-eks/pull/184
  • t

    tall-librarian-49374

    06/27/2019, 3:53 PM
    I've been looking at fixing https://github.com/pulumi/pulumi/issues/2784. Found a plausible place in
    pulumi/pulumi/pkg/resource/asset.go
    where the fix could go. I build
    pulumi
    CLI with a fix and see the paths do change while running
    pulumi up
    (with logging to console), however the archive binary in Azure Blob Storage does NOT change. Question: is this piece of code executed inside CLI or also inside the azure provider process? If the later, how do I setup the local environement to be able to bring locally changed package
    pulumi/pulumi
    to
    pulumi-azure
    ?
    w
    s
    • 3
    • 12
Powered by Linen
Title
t

tall-librarian-49374

06/27/2019, 3:53 PM
I've been looking at fixing https://github.com/pulumi/pulumi/issues/2784. Found a plausible place in
pulumi/pulumi/pkg/resource/asset.go
where the fix could go. I build
pulumi
CLI with a fix and see the paths do change while running
pulumi up
(with logging to console), however the archive binary in Azure Blob Storage does NOT change. Question: is this piece of code executed inside CLI or also inside the azure provider process? If the later, how do I setup the local environement to be able to bring locally changed package
pulumi/pulumi
to
pulumi-azure
?
w

white-balloon-205

06/27/2019, 4:00 PM
This code is called from
pulumi-terraform
which is linked into
pulumi-azure
and other providers. See for example: https://github.com/pulumi/pulumi-terraform/blob/018e686ef075981921d0fb19e71fc65a0db87b9a/pkg/tfbridge/schema.go#L403 To test changes here: 1. Make the changes in your local copy of
pulumi-terraform
2. In
pulumi-azure
run
go mod edit -replace=<http://github.com/pulumi/pulumi-terraform=../pulumi-terraform/|github.com/pulumi/pulumi-terraform=../pulumi-terraform/>
3. Run
make install
in
pulumi-azure
4. From your example code,
yarn link @pulumi/azure
to use the newly built version This should result in using the latest Node package and provider binary in your test.
t

tall-librarian-49374

06/27/2019, 4:07 PM
Thanks, will try
Given my changes are in
pulumi/pulumi
, do I need to
go mod edit -replace=<http://github.com/pulumi/pulumi=../pulumi/|github.com/pulumi/pulumi=../pulumi/>
from
pulumi/azure
?
w

white-balloon-205

06/27/2019, 8:38 PM
Ahh - good point - yes you likely do.
t

tall-librarian-49374

06/27/2019, 8:51 PM
After doing so,
make install
gives me an error like here https://github.com/google/go-cloud/issues/1990
ambiguous import: found <http://github.com/Azure/go-autorest/tracing|github.com/Azure/go-autorest/tracing> in multiple modules
w

white-balloon-205

06/27/2019, 8:51 PM
cc @stocky-spoon-28903 who may know off the top of his head.
s

stocky-spoon-28903

06/27/2019, 9:03 PM
I’ve not seen that one before
t

tall-librarian-49374

06/28/2019, 7:35 AM
Resolved it by
replace <http://github.com/Azure/go-autorest|github.com/Azure/go-autorest> => <http://github.com/Azure/go-autorest|github.com/Azure/go-autorest> v11.1.2+incompatible
Another issue I had is that
pulumi-terraform
wouldn't build with the latest
pulumi/pulumi
, so I had to checkout pulumi@0.17.6 (the one from
go.mod
in
pulumi-terraform
).
And then the whole setup finally works, I can produce
pulumi-azure
with modified code from
pulumi/pulumi
.
I even got it building on Windows without WSL
View count: 1