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

    helpful-television-6356

    11/02/2018, 6:07 AM
    Hi, I'm trying to get my first Pulumi stack up and I'm getting a stack trace from sonething. I've got a GKE Kubernetes cluster setup and running and I'm trying to use the kubernetes-ts-nginx running. Here's what's happening:
  • h

    helpful-television-6356

    11/02/2018, 6:07 AM
    ~/go/src/github.com/pulumi/examples/kubernetes-ts-nginx$ npm install npm WARN k8s-nginx@0.1.0 No repository field. audited 557 packages in 1.255s found 0 vulnerabilities ~/go/src/github.com/pulumi/examples/kubernetes-ts-nginx$ pulumi stack init Enter a stack name: test2 Created stack 'test2' ~/go/src/github.com/pulumi/examples/kubernetes-ts-nginx$ pulumi up Previewing update (test2): Type Name Plan Info pulumi😛ulumi:Stack k8s-nginx-test2 1 error; 14 messages Diagnostics: pulumi😛ulumi:Stack (k8s-nginx-test2): undefined:3 return %FunctionGetScript(func); ^ SyntaxError: FunctionGetScript is not defined at new Function (<anonymous>) at Object.<anonymous> (/Users/martin/go/src/github.com/pulumi/examples/kubernetes-ts-nginx/node_modules/@pulumi/pulumi/runtime/closure/v8.js:33:1) at Module._compile (internal/modules/cjs/loader.js:707:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10) at Module.load (internal/modules/cjs/loader.js:605:32) at tryModuleLoad (internal/modules/cjs/loader.js:544:12) at Function.Module._load (internal/modules/cjs/loader.js:536:3) at Module.require (internal/modules/cjs/loader.js:643:17) at require (internal/modules/cjs/helpers.js:22:18) at Object.<anonymous> (/Users/martin/go/src/github.com/pulumi/examples/kubernetes-ts-nginx/node_modules/@pulumi/pulumi/runtime/closure/createClosure.js:32:12) error: an unhandled error occurred: Program exited with non-zero exit code: 1 error: an error occurred while advancing the preview ~
  • h

    helpful-television-6356

    11/02/2018, 6:08 AM
    This is on macOS with latest everything. Any ideas?
    c
    b
    • 3
    • 6
  • o

    orange-tailor-85423

    11/02/2018, 2:55 PM
    Working on CI/CD - suggestions for following scenario. We are an Azure DevOps shop. Set up kind of a shell Github team so that we could federate with Pulumi stack permissions. But I want a token for a "service account". How to accomplish this with Pulumi/Github. Or create a user that's aliased to our team email, sign them up for Github etc etc. TL;DR - what accounts are y'all granting tokens to for API access.
    b
    w
    c
    • 4
    • 5
  • o

    orange-tailor-85423

    11/02/2018, 2:55 PM
    Right now the POC build I modified is using my creds
  • g

    gifted-lion-29985

    11/02/2018, 3:48 PM
    Hi, how do I add custom typings in a pulumi typescript project? I added in tsconfig and vscode is happy but not pulumi
    w
    • 2
    • 5
  • b

    busy-umbrella-36067

    11/02/2018, 3:49 PM
    getting a
    500
    on https://app.pulumi.com/XXXXX/settings/billing
    c
    • 2
    • 10
  • q

    quiet-wolf-18467

    11/02/2018, 5:24 PM
    Getting a lot of 404's on Pulumi Cloud right now too
    b
    • 2
    • 5
  • g

    gray-city-50684

    11/02/2018, 5:36 PM
    I created a Kubernetes deployment on Azure (AKS, Helm Charts and various other resources - all created by Pulumi). “pulumi up” timeouted on a couple of things (ingress, a deployment with a crash-loop, and another deployment). If I run “pulumi refresh” it shows “0 changes”. If I run “pulumi up” it wants to create those 3 components. The problem is, that the components do exist actually, and when Pulumi wants to create them, it fails with “error: Plan apply failed: ingresses.extensions “xyz” already exists”.
    c
    • 2
    • 33
  • g

    gray-city-50684

    11/02/2018, 5:38 PM
    (pulumi cli and npm component: v0.16.2, pulumi/azure: 0.16.3, pulumi/kubernetes: 0.17.3)
  • g

    gray-city-50684

    11/02/2018, 5:38 PM
    Is there any way I can fix this?
  • q

    quiet-wolf-18467

    11/02/2018, 5:43 PM
    Anyone getting problems with Node 11?
    i
    • 2
    • 11
  • a

    adamant-restaurant-73893

    11/02/2018, 7:26 PM
    Something for the weekend: thinking of migrating TF to Pulumi? @microscopic-florist-22719 has an extensive post on doing just that https://blog.pulumi.com/infrastructure-as-code-from-terraform-to-general-purpose-languages-with-pulumi
    g
    m
    • 3
    • 2
  • o

    orange-tailor-85423

    11/02/2018, 9:58 PM
    Ruh_roh.txt
  • o

    orange-tailor-85423

    11/02/2018, 9:58 PM
    this is new - pulumi preview running fine on my/our Mac but failing on vsts Ubuntu hosted build node
  • o

    orange-tailor-85423

    11/02/2018, 9:59 PM
    could this be the issue/difference?
  • w

    white-balloon-205

    11/02/2018, 9:59 PM
    Looks like there is some issue in one of the NPM dependencies here - folks in the Angular community are hitting this currently too right now apparently: https://github.com/angular/angular/issues/26928
  • o

    orange-tailor-85423

    11/02/2018, 10:04 PM
    phew - updated build pipeline to node 10.x - worked
  • i

    incalculable-sundown-82514

    11/02/2018, 10:05 PM
    Looks like the owner of
    graceful-fs
    just fixed their package too, which is probably what fixed your problem 😄
  • f

    faint-application-2746

    11/02/2018, 10:40 PM
    Is there any AppSync examples somewhere?
    w
    • 2
    • 2
  • q

    quiet-wolf-18467

    11/02/2018, 11:44 PM
    Is it possible to dynamically configure AWS, GCP, or K8s?
    c
    g
    m
    • 4
    • 178
  • g

    glamorous-printer-66548

    11/03/2018, 5:33 AM
    hey one observation: I use the sourcegraph chrome extension in my browser: https://chrome.google.com/webstore/detail/sourcegraph/dgjhfomjieaadpoljlnidmbgkdffpack which is supposed to give code hinting and navigation when browsing typescript code on github. I’m noticing however that sourcegraph is never able to resolve pulumi packages. I believe this may be caused by the inability to install pulumi packages when the pulumi CLI is not installed (i.e. one of the postinstall scripts fail the installation). Sourcegraph probably (that is my understanding) attempts to automatically installs npm packages on a remote server and then uses the downloaded packages to power their code intelligence API. Probably this remote server is unable to download the package because it doesn’t have pulumi CLI installed. Any thoughts on how to fix this? Would it be possible to make pulumi npm packages installable without having pulumi CLI installed?
    w
    • 2
    • 8
  • c

    cold-train-5848

    11/03/2018, 4:13 PM
    Are there binaries available for the latest unstable version (v0.16.3-rc1)?
    w
    • 2
    • 2
  • q

    quiet-wolf-18467

    11/03/2018, 11:45 PM
    How would one write tests for a ComponentResource?
    w
    • 2
    • 1
  • e

    eager-area-86739

    11/04/2018, 12:14 PM
    Hi all, How can we set the CloudWatch Settings for a API Gateway Stage?
  • e

    eager-area-86739

    11/04/2018, 12:15 PM
    AWS Console
  • e

    eager-area-86739

    11/04/2018, 12:15 PM
    From the
    aws.apigateway.Stage
    I can't find the correct arguments.
    w
    • 2
    • 2
  • g

    gifted-lion-29985

    11/04/2018, 2:49 PM
    Hi, i jus upgrade to pulumi v0.16.2 and for some reasons
    pulumi logs --follow
    is not showing anything now, anyone has the same issue?
    w
    • 2
    • 2
  • c

    cold-train-5848

    11/04/2018, 4:06 PM
    When I try to build the latest master version, I'm getting a couple of errors when running
    make
    gometalinter: error: unknown linters: gas
    I think Gometalinter replaced gas with gosec. I delete the
    gas
    line in
    Gometalinter.json
    gometalinter --config=../../Gometalinter.json cmd/pulumi-language-nodejs/main.go | sort ; exit "${PIPESTATUS[0]}"
    WARNING: deadline exceeded by linter varcheck (try increasing --deadline)
    WARNING: deadline exceeded by linter errcheck (try increasing --deadline)
    WARNING: deadline exceeded by linter megacheck (try increasing --deadline)
    WARNING: deadline exceeded by linter structcheck (try increasing --deadline)
    WARNING: deadline exceeded by linter interfacer (try increasing --deadline)
    Makefile:19: recipe for target 'lint' failed
    make[1]: *** [lint] Error 2
    make[1]: Leaving directory '/go/src/github.com/pulumi/pulumi/sdk/nodejs'
    build/common.mk:189: recipe for target 'sdk/nodejs_default' failed
    make: *** [sdk/nodejs_default] Error 2
    Then I delete everything in the Enable section, and then I get the following error:
    TEST FAST:
    go test -cover -parallel 10 <http://github.com/pulumi/pulumi/sdk/go/pulumi|github.com/pulumi/pulumi/sdk/go/pulumi> <http://github.com/pulumi/pulumi/sdk/go/pulumi/asset|github.com/pulumi/pulumi/sdk/go/pulumi/asset> <http://github.com/pulumi/pulumi/sdk/go/pulumi/config|github.com/pulumi/pulumi/sdk/go/pulumi/config> <http://github.com/pulumi/pulumi/sdk/go/pulumi-language-go|github.com/pulumi/pulumi/sdk/go/pulumi-language-go>
    # <http://github.com/pulumi/pulumi/sdk/go/pulumi-language-go|github.com/pulumi/pulumi/sdk/go/pulumi-language-go>
    pulumi-language-go/main.go:107: Verbose.Infoln call has possible formatting directive %s
    pulumi-language-go/main.go:115: Verbose.Infoln call has possible formatting directive %s
    pulumi-language-go/main.go:122: Verbose.Infoln call has possible formatting directive %s
    pulumi-language-go/main.go:145: Verbose.Infoln call has possible formatting directive %s
    ok    <http://github.com/pulumi/pulumi/sdk/go/pulumi|github.com/pulumi/pulumi/sdk/go/pulumi>  0.005s  coverage: 17.7% of statements
    ?     <http://github.com/pulumi/pulumi/sdk/go/pulumi/asset|github.com/pulumi/pulumi/sdk/go/pulumi/asset>  [no test files]
    ok    <http://github.com/pulumi/pulumi/sdk/go/pulumi/config|github.com/pulumi/pulumi/sdk/go/pulumi/config> 0.005s  coverage: 26.6% of statements
    Makefile:26: recipe for target 'test_fast' failed
    make[1]: *** [test_fast] Error 2
    make[1]: Leaving directory '/go/src/github.com/pulumi/pulumi/sdk/go'
    build/common.mk:189: recipe for target 'sdk/go_default' failed
    make: *** [sdk/go_default] Error 2
    w
    b
    s
    • 4
    • 6
  • c

    cold-train-5848

    11/04/2018, 10:59 PM
    I'm trying to run the version from
    master
    , when I do
    pulumi new
    it creates a
    package.json
    , which contains the following lines which point to the latest stable version:
    "dependencies": {
            "@pulumi/pulumi": "latest",
            "@pulumi/kubernetes": "latest"
        }
    After I update
    package.json
    to point to the latest master version as below:
    "dependencies": {
            "@pulumi/pulumi": "<https://github.com/pulumi/pulumi.git>",
            "@pulumi/kubernetes": "<https://github.com/pulumi/pulumi-kubernetes.git>"
        }
    And I run
    yarn install
    I'm getting the following error when doing `pulumi up`:
    error: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
     
    error: failed to load language plugin nodejs: could not read plugin [/home/shai/go/bin/pulumi-language-nodejs] stdout: EOF
    w
    • 2
    • 8
Powered by Linen
Title
c

cold-train-5848

11/04/2018, 10:59 PM
I'm trying to run the version from
master
, when I do
pulumi new
it creates a
package.json
, which contains the following lines which point to the latest stable version:
"dependencies": {
        "@pulumi/pulumi": "latest",
        "@pulumi/kubernetes": "latest"
    }
After I update
package.json
to point to the latest master version as below:
"dependencies": {
        "@pulumi/pulumi": "<https://github.com/pulumi/pulumi.git>",
        "@pulumi/kubernetes": "<https://github.com/pulumi/pulumi-kubernetes.git>"
    }
And I run
yarn install
I'm getting the following error when doing `pulumi up`:
error: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
 
error: failed to load language plugin nodejs: could not read plugin [/home/shai/go/bin/pulumi-language-nodejs] stdout: EOF
w

white-balloon-205

11/04/2018, 11:01 PM
The NPM packages are not at the root of these repos, and may not be possible to reference directly from Git as they are built as part of the build process. I would suggest that you build locally and then use ‘yarn link’ to pull into your project. This is what we do for most of our development.
In particular the
@pulumi/pulumi
NPM module sources are at https://github.com/pulumi/pulumi/tree/master/sdk/nodejs, but the details like version and preinstall steps are inserted by the build process (
make
in that folder).
c

cold-train-5848

11/04/2018, 11:43 PM
What's the exact yarn link command I need to run, and in what directory do I run it?
w

white-balloon-205

11/05/2018, 3:35 AM
The
make build
should set up the links, and then from your app just do
yarn link <@UB8C33JJG>/pulumi
.
c

cold-train-5848

11/05/2018, 9:09 AM
How do I link the docker package?
$ yarn link @pulumi/pulumi
success Using linked package for "@pulumi/pulumi".
$ yarn link @pulumi/docker
error No registered package found called "@pulumi/docker".
When I try to run
make
on the
pulumi/pulumi-docker
repo I'm getting errors:
docker.ts:18:32 - error TS2307: Cannot find module 'child_process'.
docker.ts:19:25 - error TS2307: Cannot find module 'semver'.
docker.ts:556:27 - error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i @types/node`.
w

white-balloon-205

11/05/2018, 3:38 PM
On the first question, that package is built out of Pulumi/pulumi-docker, which isn’t looks like you found. On the second, I suspect you need to
make ensure
prior to
make
to install dependencies.
c

cold-train-5848

11/05/2018, 5:18 PM
Got it working now, thanks!
🎉 2
View count: 1