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

    flaky-receptionist-88878

    09/17/2018, 2:48 PM
    Does anyone have any insight into running a shell based tool after a docker image is created? I’m having issues when the first time I run this code that the shell.exec command is running before the actual image is actually built. When I do pulumi up(before saying yes to applying) and I my shell.exec command fails saying the image doesn’t exist. But I know it does because if run docker images I can see it. To me it must be the async nature of the code. The docker build must be firing off and my shell.exec all at the same time. Being the shell.exec is faster it finishes first and the error happens. This may be me just coming to terms with nodejs code.
    d
    • 2
    • 3
  • f

    flaky-receptionist-88878

    09/17/2018, 2:48 PM
    -.ts
  • d

    dry-pilot-73614

    09/17/2018, 4:24 PM
    I have a function that injects a cloudsql-proxy sidecar into a k8s deployment. It seems that every other time I run
    pulumi up
    it wants to remove the
    volumes
    in my pod spec.
    w
    c
    l
    • 4
    • 41
  • f

    flaky-receptionist-88878

    09/17/2018, 8:05 PM
    Question/Possible bug https://github.com/pulumi/pulumi-docker/issues/19
    w
    • 2
    • 2
  • a

    aloof-tailor-93191

    09/17/2018, 9:33 PM
    hey, long time fan of Pulumi, finally getting into using it for real. I'm aiming to use it via Go and I was able to get a simple bucket going (after running
    pulumi plugin install resource aws 0.15.0
    to get the aws plugin). is anyone opposed to having a #golang channel for issues specific to installing/running/etc with Go?
    c
    w
    • 3
    • 23
  • q

    quiet-wolf-18467

    09/17/2018, 9:55 PM
    Pulumi configuration
    w
    • 2
    • 8
  • q

    quiet-wolf-18467

    09/17/2018, 10:11 PM
    I've uploaded some sample code. It doesn't offer to create the Kubernetes cluster, though I do not know why. It works if I copy the code block into
    index.ts
    w
    • 2
    • 6
  • g

    glamorous-printer-66548

    09/18/2018, 12:11 AM
    i’m trying to run pulumi inside a docker container / ci environment, but I’m getting the error
    error: failed to load language plugin nodejs: no language plugin 'nodejs' found in the workspace or on your $PATH
    . I can’t remember having to install a nodejs plugin explicitly locally, nor does
    pulumi plugin ls
    show locally a nodejs plugin. Any hints on what may be the problem? Note in the CI environment I’m running node 10, whereas locally I just have node 8 - may that be the cause?
    b
    • 2
    • 2
  • g

    great-refrigerator-15198

    09/18/2018, 12:39 PM
    Has anyone tried or know of some project using Istio + Pulumi in k8s/eks?
    ➕ 1
    d
    f
    c
    • 4
    • 17
  • e

    eager-area-86739

    09/18/2018, 4:24 PM
    Hi, I'm trying different options with Pulumi, and one of them is to upload a .NET Lambda to AWS. I can set the code from the directory where the DLL's are:
    code: new pulumi.asset.AssetArchive({
                ".": new pulumi.asset.FileArchive("./publish/TheLambda")
            }),
    But I'm trying to upload a zip file that was already created by the build pipeline. However I can't find the documentation to do it. Any ideas? Cheers
    w
    s
    • 3
    • 25
  • c

    creamy-potato-29402

    09/18/2018, 6:08 PM
    In low-key news of the day, we released
    kubespy
    , a simple tool that lets you observe how Kubernetes resources change over time:
  • c

    creamy-potato-29402

    09/18/2018, 6:13 PM
    https://twitter.com/hausdorff_space/status/1042109767617933312
    👍 2
  • c

    creamy-potato-29402

    09/18/2018, 6:14 PM
    there we go
  • b

    broad-coat-71198

    09/18/2018, 6:25 PM
    You could just log it out in the get input stage
  • h

    helpful-lighter-74534

    09/18/2018, 7:39 PM
    hey, any idea what this could be:
    Diagnostics:
      pulumi:pulumi:Stack: cup-webapp-cup-webapp-dev
        error: Running program '/Users/eromero/WebstormProjects/cup-webapp/infra' failed with an unhandled exception:
    
        error: AssertionError: Assertion failed
            at new goog.asserts.AssertionError (/Users/eromero/WebstormProjects/cup-webapp/infra/node_modules/google-protobuf/google-protobuf.js:98:603)
    i
    • 2
    • 1
  • h

    helpful-lighter-74534

    09/18/2018, 7:39 PM
    error when running
    pulumi up
  • f

    fancy-fall-81083

    09/19/2018, 2:57 PM
    Hej there, what is the pulumi way to access already existing resources? Was not able to find anything in the docs.
  • f

    fancy-fall-81083

    09/19/2018, 3:21 PM
    Alternatively, maybe disabling the suffix would accomplish this? I however have not been able to find out how to disable auto suffixing resources ..
  • s

    stocky-spoon-28903

    09/19/2018, 3:32 PM
    @fancy-fall-81083 This is somewhat provider specific
  • s

    stocky-spoon-28903

    09/19/2018, 3:33 PM
    In general though, there is a series of
    get*
    functions which return objects representing the resources
  • s

    stocky-spoon-28903

    09/19/2018, 3:33 PM
    For example, you can do:
  • s

    stocky-spoon-28903

    09/19/2018, 3:34 PM
    const route53Zone = await aws.route53.getZone({
                name: "<http://whatever.com|whatever.com>",
                privateZone: false,
            });
  • f

    fancy-fall-81083

    09/19/2018, 3:37 PM
    Ok, thanks. Will try right away. In terraform you don't have the autogenerated suffixes and would be able to use "resource" with the same name and get the properties. Is the same possible with pulumi, disabling the auto-generated suffixes?
  • s

    stocky-spoon-28903

    09/19/2018, 3:38 PM
    Yes, if you set the
    name
    field directly it will override the automatically generated name
  • s

    stocky-spoon-28903

    09/19/2018, 3:39 PM
    Note that the
    name
    field on some resources is slightly strange thanks to the underlying API (e.g. on an S3 bucket it is
    bucket
    not
    name
    )
  • f

    fancy-fall-81083

    09/19/2018, 3:40 PM
    omg, hahaha, alright, I get it now. Sorry, I was confused. As the auto-generated name is the first argument with an auto-generated suffix I did not see I could just provide "name" as an additional argument 😂
  • s

    stocky-spoon-28903

    09/19/2018, 3:41 PM
    It’s the equivalent of using
    name_prefix
    in Terraform by default
  • s

    stocky-spoon-28903

    09/19/2018, 3:41 PM
    It turns out though: it’s a good idea quite often to make the names have the suffix, since some things can’t be replaced in place
  • f

    fancy-fall-81083

    09/19/2018, 3:42 PM
    yes, of course. The main pain point is embedding app service plans in app service environments on azure
  • s

    stocky-spoon-28903

    09/19/2018, 3:42 PM
    Ah yes, if you need a specific name you can set it directly as above then
Powered by Linen
Title
s

stocky-spoon-28903

09/19/2018, 3:42 PM
Ah yes, if you need a specific name you can set it directly as above then
View count: 2