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

    powerful-whale-8767

    06/21/2018, 11:01 PM
    https://github.com/pulumi/pulumi/blob/78aaa29cee75d4ee190cdeee75d816474894dfa7/cmd/logs.go#L21
  • s

    stocky-spoon-28903

    06/21/2018, 11:01 PM
    Oh, it could also be that.
  • p

    powerful-whale-8767

    06/21/2018, 11:01 PM
    in fairness, I think this is only a warning -- the
    go get
    actually succeeds
  • s

    stocky-spoon-28903

    06/21/2018, 11:01 PM
    I’d have expected that to show up in CI though?
  • s

    stocky-spoon-28903

    06/21/2018, 11:01 PM
    Yes, it does build
  • p

    powerful-whale-8767

    06/21/2018, 11:02 PM
    We use vendoring and
    dep ensure
    . It appears these warnings only fire for
    go get
    and not for
    go build
    /
    go install
    .
  • s

    stocky-spoon-28903

    06/21/2018, 11:02 PM
    I would be tempted to adjust the build instructions however - it would be better if the instructions were to clone the repo into GOPATH and then run
    dep ensure
    rather than to use
    go get
  • s

    stocky-spoon-28903

    06/21/2018, 11:03 PM
    In this section: https://github.com/pulumi/pulumi/blob/master/README.md#building-from-source
  • p

    powerful-whale-8767

    06/21/2018, 11:03 PM
    Definitely. Not sure why we seem to be of two minds there. I'll make sure we get this sorted out.
  • p

    powerful-whale-8767

    06/21/2018, 11:03 PM
    Thanks for catching this!
  • s

    stocky-spoon-28903

    06/21/2018, 11:03 PM
    I’m fairly sure
    go get
    will do the wrong thing with respect to dependencies absent of
    vendor/
    being checked in
  • p

    powerful-whale-8767

    06/21/2018, 11:03 PM
    The "Building and Testing" instructions immediately thereafter are a better representation of what we do in CI and in our own dev workflow.
  • s

    stocky-spoon-28903

    06/21/2018, 11:04 PM
    Yes, that seems to work better.
  • s

    stocky-spoon-28903

    06/21/2018, 11:04 PM
    I’ll open a PR to fix the
    moby
    import anyway
  • p

    powerful-whale-8767

    06/21/2018, 11:04 PM
    Thank you!
  • s

    stocky-spoon-28903

    06/21/2018, 11:09 PM
    #1558 should fix it.
  • s

    square-gigabyte-16212

    06/21/2018, 11:10 PM
    Hello - I'm just starting out with Pulumi and using Python... though I'm by no means a Python developer. I have a question about debugging. What is the recommended debugging approach? When I step into my function (the aws-python template to start with), I get a "RunError Pulumi program not connected to the engine -- are you running with the
    pulumi
    CLI?" Is there an article I haven't found yet which talks about how to run in a debugger with the engine connected?
  • s

    stocky-spoon-28903

    06/21/2018, 11:15 PM
    Does this page exist somewhere still? It is referenced in
    <http://common.mk|common.mk>
    if you don’t have Python configured (I’ve never touched Python on a fresh OS X install), but the page 404s. I had search in the docs and can’t find anything related but could easily be missing something. https://github.com/pulumi/home/wiki/Package-Management-Prerequisites
    b
    b
    • 3
    • 12
  • s

    stocky-spoon-28903

    06/21/2018, 11:15 PM
    (Sorry for all the questions, trying to get up to speed for contributions)
  • s

    square-gigabyte-16212

    06/21/2018, 11:19 PM
    On the positive side, I have Python27 installed and am able to run the example, including some of my own minor edits. Pulumi looks like it will be very powerful for combining solution and infrastructure definition is one place! Looking forward to doing more with it!
  • s

    square-gigabyte-16212

    06/21/2018, 11:28 PM
    Would it make sense to have language specific channels in Slack?
  • w

    white-balloon-205

    06/21/2018, 11:35 PM
    @square-gigabyte-16212 Pulumi programs are executed when you run
    pulumi update
    and
    pulumi preview
    - but in general they will not make sense to run directly with
    python
    or
    node
    CLIs. The programs themselves register resources with a pulumi engine that understands how to turn those resources into operations against your target cloud. See https://pulumi.io/reference/how.html for some details on this process. As you've noted though, that does though mean you can't use existing debuggers directly, because
    pulumi
    will spawn python on your behalf. I'm sure we'll be able to add support for passing through flags to allow attaching a debugger to the spawned process, but it's possible we don't have a first class way to do that today. If you open an issue on this, we can take a look at what options might work already today, and what new support might make sense to add to allow debuggers to easily light up.
  • s

    square-gigabyte-16212

    06/21/2018, 11:44 PM
    Hi @white-balloon-205 - thanks for your reply and clarifying the current state of dev tools. I'll try to put together my thoughts into a github issue as you suggest. I feel like there are 2 angles... 1 is basic debugging of the pulumi program while 2 is debugging functions that might be ultimately running serverless (e.g. AWS Lambda) but are complex enough to require local debugging and/or unit tests. I suppose there might be a recommended software design/architecture which decomposes at certain boundaries to enable the local debugging/unit testing, and then have the Lambda simply call into the appropriate component to pass the "event" for handling. I might be rambling now, but I think I'm seeing how the needed debugging might be doable today using this decomposition approach.
  • b

    bitter-oil-46081

    06/21/2018, 11:47 PM
    Note we do have this related issue: https://github.com/pulumi/pulumi/issues/1372
    👍 1
  • w

    white-balloon-205

    06/21/2018, 11:50 PM
    Ahh - yes - I was referring to debugging the deployment code (though honestly it hasn't in general been that common to need to debug those programs as when there are issues the failure modes tend to make clear whats going on). For debugging runtime callback code - that is indeed a more interesting and common case. Today, the answer is generally to use existing tools for diagnosing issues in serverless function or containers - logging, IOPipe, AWS XRay, etc. Though unfortunately, the state of the art in this space isn't particularly great. We do offer a simple
    pulumi logs
    command that provides an easy way to see logs from all the sources of compute in your application.
    👍 1
  • a

    aloof-air-76460

    06/22/2018, 5:11 AM
    Thank you for great product. We are starting to implement it for our clients and internal projects. I would love to contribute to your OpenSource part. Is it of use for anybody here if pulumi preview would be able to generate UML diagrams of the infrastructure?
  • b

    big-piano-35669

    06/22/2018, 4:26 PM
    Petr, welcome, and I'm so happy that you're excited by Pulumi! We are a big fan of visualizing resources around here, and actually have a DOT file generator built into the CLI: https://pulumi.io/reference/cli/pulumi_stack_graph.html. Our plan is to have a "Graph" tab in the service UI eventually that would show you a nice visualization using D3 of this. Not quite UML, but we've found it to be helpful. If you come up with something, we'd love to see it and better understand what's useful in practice.
    s
    • 2
    • 2
  • s

    stocky-spoon-28903

    06/22/2018, 5:54 PM
    The templates page linked from the UI 404s: https://pulumi.io/tour/basics-templates.html
  • s

    stocky-spoon-28903

    06/22/2018, 5:54 PM
    @stocky-spoon-28903 uploaded a file:

    From here▾

  • m

    microscopic-pilot-97530

    06/22/2018, 5:57 PM
    Thanks for letting us know, @stocky-spoon-28903! I believe we changed the page to https://pulumi.io/tour/basics-projects.html but forgot to update the link there. Will fix.
    👍 1
Powered by Linen
Title
m

microscopic-pilot-97530

06/22/2018, 5:57 PM
Thanks for letting us know, @stocky-spoon-28903! I believe we changed the page to https://pulumi.io/tour/basics-projects.html but forgot to update the link there. Will fix.
👍 1
View count: 1