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
  • h

    helpful-vegetable-35581

    02/17/2019, 9:02 PM
    That is pretty cool!
  • t

    tall-librarian-49374

    02/17/2019, 10:07 PM
    Do you know why dotnet process seems to use 100% cpu while pulumi cli is working?
  • h

    helpful-vegetable-35581

    02/18/2019, 8:47 AM
    Not sure, guess I left a busy loop in somewhere. I'll have a look, if it is that I can at least add a thread yield.
  • h

    helpful-vegetable-35581

    02/18/2019, 9:11 AM
    Ah yeh there's a busy GC collect loop at the end of run, I'll add a thread yield to that.
  • t

    tall-librarian-49374

    02/18/2019, 9:23 AM
    Also any error makes cli stuck instead of quiting, so I Ctlr-C every time
  • t

    tall-librarian-49374

    02/18/2019, 9:24 AM
    (again, you don't have to fix this 😉 )
  • t

    tall-librarian-49374

    02/18/2019, 9:24 AM
  • t

    tall-librarian-49374

    02/18/2019, 9:25 AM
    Posted this on twitter. I guess that's where I stop for now.
  • h

    helpful-vegetable-35581

    02/18/2019, 9:37 AM
    Quick fix for the 100% CPU usage: https://github.com/Frassle/pulumi/commit/aa043378defb734f14e28672e92c8d5e9548bf94
  • h

    helpful-vegetable-35581

    02/18/2019, 9:38 AM
    just added a sleep 1ms to the collection loop (Which is need to trigger tasks to throw any uncaught errors)
    👍 1
  • h

    helpful-vegetable-35581

    02/18/2019, 10:23 AM
    Can't easily repro errors causing the cli to stick. If you have a small reproducer I can take a look but trying to pass invalid values, and throwing exceptions both in IO space and in the main program all seem to terminate ok.
  • t

    tall-librarian-49374

    02/18/2019, 10:25 AM
    Last time I got it when not passing mandatory parameters to cosmosdb:
    new Pulumi.Azure.Cosmosdb.Account(
                    "name",
                    new Pulumi.Azure.Cosmosdb.AccountArgs()
                    {
                        ResourceGroupName = resourceGroup.Name,
                        Location = resourceGroup.Location
                    });
  • t

    tall-librarian-49374

    02/18/2019, 10:26 AM
    Or even not logging into azure
  • h

    helpful-vegetable-35581

    02/18/2019, 10:32 AM
    hmm odd both of those seem to terminate, must of been something more complex that triggers it
  • h

    helpful-vegetable-35581

    02/18/2019, 10:32 AM
    ah well ctrl-c isn't a terrible workaround for now
  • t

    tall-librarian-49374

    02/18/2019, 10:33 AM
    sure, no worries
  • c

    colossal-room-15708

    03/09/2019, 9:21 AM
    I was wondering, how would I go about adding support for a new language to pulumi. In this case I believe that (especially for Azure) a way to write this in PowerShell might be a really good way to get lots of adoption. I guess it's a matter of having a dotnet library first, right?
  • h

    helpful-vegetable-35581

    03/09/2019, 3:10 PM
    I started a prototype for dotnet support, it's on hold waiting for the results of https://github.com/pulumi/pulumi/issues/2430
  • c

    colossal-room-15708

    03/09/2019, 10:11 PM
    @helpful-vegetable-35581 just trying to understand what I needed to do to add language support. Does the pulumi binary expose something and I wrap my language around that?
  • s

    stocky-spoon-28903

    03/09/2019, 10:24 PM
    @colossal-room-15708 Effectively yes - the Pulumi engine exposes a GRPC interface, and the runtime for the target language has to implement that
  • s

    stocky-spoon-28903

    03/09/2019, 10:25 PM
    (Over)simplifying it, the program in the target language has to make calls to RegisterResource as it executes and objects are constructed
    c
    h
    • 3
    • 2
  • m

    microscopic-dusk-80789

    03/21/2019, 1:51 AM
    What is the pulumi engine?
  • m

    microscopic-dusk-80789

    03/21/2019, 1:51 AM
    I see tons of references to it in the code, (grpc clients that connect to it) but I can't figure out what it is or where it gets created/spawned/ where the GRPC server starts listening
  • m

    microscopic-dusk-80789

    03/21/2019, 1:52 AM
    I am basically trying to do what this person was asking about: https://github.com/pulumi/pulumi/issues/2506
  • m

    microscopic-dusk-80789

    03/21/2019, 1:53 AM
    embed pulumi in my program
  • m

    microscopic-dusk-80789

    03/21/2019, 1:54 AM
    I want to write a tool will use pulumi to manage resources in AWS. I am familiar with Terraform and using Terraform was my 1st thought. but I like how pulumi is done with imperative style code and how you can write arbitrary code along with the bits that declare resources that should be managed
  • m

    microscopic-dusk-80789

    03/21/2019, 1:55 AM
    I could write it as basically a client of the Pulumi command line, but I don't want to do that, because its seems... dirty
  • s

    stocky-spoon-28903

    03/21/2019, 1:55 AM
    What’s the reason for wanting to embed the engine instead of just using the
    pulumi
    CLI? Although it’s technically possible, it’s fairly complex because there is no API stability guarantee of the engine internals
  • m

    microscopic-dusk-80789

    03/21/2019, 1:56 AM
    I have to admit, part of it is curiousity 🙂 this is a hobby project and I just naturally want to take things apart and see how they work
  • m

    microscopic-dusk-80789

    03/21/2019, 1:57 AM
    There are some reasons, though. non-happy-path handling is done completely different for humans (cli users) versus machines There may be no api stability of the internals, but what about api stability of me parsing strings out of the CLI error messages?
Powered by Linen
Title
m

microscopic-dusk-80789

03/21/2019, 1:57 AM
There are some reasons, though. non-happy-path handling is done completely different for humans (cli users) versus machines There may be no api stability of the internals, but what about api stability of me parsing strings out of the CLI error messages?
View count: 1