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

    plain-quill-22197

    07/05/2021, 4:39 PM
    However, I struggle to understand: • how to test it locally? the CLI seems to require the provider need to be published in some package registry • how to add it to the Pulumi org? I found no guidelines for contributing new providers, except an issue in the bolierplate repo, which is open for a year
    f
    b
    b
    • 4
    • 23
  • b

    bored-monitor-99026

    07/09/2021, 7:16 AM
    hi everyone! following pulumi-provider-boilerplate readme step by step, using the exact commands on ubuntu 20.04, i got the follow error when `pulumi up`:
    Type                 Name         Plan       Info
     +   pulumi:pulumi:Stack  simple-test  create     1 error
     
    Diagnostics:
      pulumi:pulumi:Stack (simple-test):
        error: Running program '/home/tingkai/pulumi/pulumi-oneandone/examples/simple' failed with an unhandled exception:
        TSError: ⨯ Unable to compile TypeScript:
        ../../sdk/nodejs/index.ts(4,25): error TS2307: Cannot find module '@pulumi/pulumi'.
        
            at createTSError (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:261:12)
            at getOutput (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:367:40)
            at Object.compile (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:558:11)
            at Module.m._compile (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:439:43)
            at Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
            at Object.require.extensions.<computed> [as .ts] (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:442:12)
            at Module.load (node:internal/modules/cjs/loader:988:32)
            at Function.Module._load (node:internal/modules/cjs/loader:828:14)
            at Module.require (node:internal/modules/cjs/loader:1012:19)
            at require (node:internal/modules/cjs/helpers:93:18)
    how could i fix this?
    t
    b
    • 3
    • 12
  • b

    bored-monitor-99026

    07/09/2021, 10:05 PM
    hi, i am trying to convert a tf provider to a new pulumi provider by
    pulumi/pulumi-tf-provider-boilerplate
    when
    make build_sdks
    , i have the following error:
    $ make build_sdks
    [ -x /home/tingkai/.pulumi/bin/pulumi ] || curl -fsSL <https://get.pulumi.com> | sh
    pulumi plugin install resource random 2.2.0
    (cd provider && go build -a -o /home/tingkai/torchai/infra/pulumi-oneandone/tmp/pulumi-oneandone/bin/pulumi-tfgen-oneandone -ldflags "-X <http://github.com/tz-torchai/pulumi-oneandone/provider/pkg/version.Version=0.0.1-alpha.1623235147+2e15515f.dirty|github.com/tz-torchai/pulumi-oneandone/provider/pkg/version.Version=0.0.1-alpha.1623235147+2e15515f.dirty>" <http://github.com/tz-torchai/pulumi-oneandone/provider/cmd/pulumi-tfgen-oneandone)|github.com/tz-torchai/pulumi-oneandone/provider/cmd/pulumi-tfgen-oneandone)>
    # <http://github.com/tz-torchai/pulumi-oneandone/provider|github.com/tz-torchai/pulumi-oneandone/provider>
    ./resources.go:94:46: impossible type assertion:
            *"<http://github.com/hashicorp/terraform-plugin-sdk/helper/schema|github.com/hashicorp/terraform-plugin-sdk/helper/schema>".Provider does not implement "<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".ResourceProvider (wrong type for Apply method)
                    have Apply(*"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceInfo, *"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceState, *"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceDiff) (*"<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".InstanceState, error)
                    want Apply(*"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceInfo, *"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceState, *"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceDiff) (*"<http://github.com/hashicorp/terraform/terraform|github.com/hashicorp/terraform/terraform>".InstanceState, error)
    make: *** [Makefile:50: tfgen] Error 2
    how could i fix this error? thanks!
    b
    b
    • 3
    • 10
  • c

    clever-byte-21551

    07/14/2021, 11:21 AM
    I added a small change that we need when using automation API. https://github.com/pulumi/pulumi/pull/7523 I’d appreciate if someone here could take a look
  • q

    quiet-motorcycle-76742

    07/14/2021, 2:55 PM
    Similarly, would appreciate it if someone could kick off an acceptance test run for https://github.com/pulumi/pulumi/pull/7483!
  • b

    bright-orange-69401

    07/22/2021, 6:35 PM
    Hey there, I’m very interested in Pulumi Packages, and especially the ability to work across languages:
    With Pulumi Packages, Resources and Components can be written once, in your preferred language, and made available in all the other languages supported by Pulumi.
    Is there any documentation or examples of Pulumi Native Provider Packages being written in something other than Go ? There’s this repo template: https://github.com/pulumi/pulumi-provider-boilerplate But it’s not very clear to me which parts of this are Go-specific and which aren’t. The
    schema.json
    is definitely a central piece, but how do you link what you declare in the schema to your code ? Is it even possible to build a Native Package in e.g. Python with Pulumi right now ?
    t
    r
    f
    • 4
    • 6
  • m

    modern-tent-22917

    07/29/2021, 9:34 AM
    Hi everyone! I have a question about the
    ctyToGo
    function in pulumi-terraform-bridge. Is there any special reason that we leave sets as-is here? What about merging this case to
    val.Type().IsListType()
    in line 32? https://github.com/pulumi/pulumi-terraform-bridge/blob/30ae8ae5cc2d2f5987854984243c74ace4ccc952/pkg/tfshim/tfplugin5/cty.go#L48
  • m

    modern-tent-22917

    07/29/2021, 9:35 AM
    cc @microscopic-florist-22719 🙏
  • w

    worried-queen-62794

    08/07/2021, 5:51 AM
    Should the gitpod work?
    make ensure
    says:
    gitpod /workspace/pulumi $ make
    /bin/bash: pulumictl: command not found
    t
    b
    • 3
    • 3
  • b

    bored-oyster-3147

    08/19/2021, 2:55 PM
    Hi all, just added a new PR to add support for
    --exact
    and
    --server
    when doing
    pulumi plugin install
    from the .NET Automation API
    👍 1
  • s

    stocky-state-77654

    08/20/2021, 7:30 AM
    I’m just getting started here with contributing to Pulumi. I pulled down the code and installed everything in the contributing README.
    make ensure
    runs just fine but
    make
    takes a long time and then errors out. I’ll follow up with a screenshot. Any obvious step I missed in getting started with local development?
  • s

    stocky-state-77654

    08/20/2021, 7:35 AM
    CommandError: code: 255 stdout: stderr: error: could not create stack: [404] Not Found: Organization ‘pulumi-test’ not found
    error-dump.txt
  • b

    broad-dog-22463

    08/20/2021, 10:32 AM
    Hi @stocky-state-77654 we have an open issue regarding this if you set PULUMI_TEST_ORG to be the name of your Pulumi account and these tests will then pass
  • b

    broad-dog-22463

    08/20/2021, 10:32 AM
    I’m sorry you ran into this issue
  • s

    stocky-state-77654

    08/20/2021, 11:42 AM
    I see. Thanks for explaining @broad-dog-22463! Where/how do I set this variable?
  • b

    broad-dog-22463

    08/20/2021, 12:13 PM
    Just on your command line as an Env Var :)
    ❤️ 1
  • s

    stocky-state-77654

    08/20/2021, 5:35 PM
    Thanks @broad-dog-22463 it’s working now
  • s

    stocky-state-77654

    08/20/2021, 5:35 PM
    So how can I use/test my local version of, say, the pulumi cli?
  • b

    broad-dog-22463

    08/20/2021, 5:53 PM
    I usually load it to my PATH
  • b

    broad-dog-22463

    08/20/2021, 5:53 PM
    If you are building the cli yourself you can use “make dist”
    🙌 1
  • b

    broad-dog-22463

    08/20/2021, 5:54 PM
    And it adds to GOPATH and then that should be on your PATH @stocky-state-77654
  • s

    stocky-state-77654

    08/20/2021, 5:54 PM
    Awesome thank you so much!
  • s

    stocky-state-77654

    08/20/2021, 5:59 PM
    Does this conflict with the release of pulumi that I already have installed?
  • s

    stocky-state-77654

    08/25/2021, 4:00 PM
    I’m making a command for Cobra CLIs to generate a spec for fig.io autocompletion. I noticed that the pulumi release doesn’t have
    pulumi completion
    , but my local dev version does. Wondering how you pull this off (not just hiding the command but actually making it unavailable to end user)
    b
    • 2
    • 8
  • l

    limited-rainbow-51650

    08/25/2021, 7:28 PM
    Hey @broad-dog-22463, I’m fighting with
    pulumi-tf-provider-boilerplate
    . I struggle to find what I have to put in
    resources.go
    . Would you have time for a call to get me going? FYI, I’m trying to make a Pulumi provider out of https://github.com/terraform-provider-concourse/terraform-provider-concourse
    b
    b
    • 3
    • 5
  • s

    stocky-state-77654

    08/25/2021, 9:00 PM
    Ready to make a little PR and not able to see this travis_pull_request script. Am I missing something?
  • b

    bored-activity-40468

    09/01/2021, 2:21 PM
    Curious to get others' thoughts on this.  In Python I have  POC where I override the init method on the base Resource so I can add logic where, if an empty resource_name is passed, a naming strategy is used to autoname Resources.  I’m wondering if it would be useful to dig into the go and find how the Resource resources are generated and see if it's possible to add this logic higher or maybe there’s some unknown side effect from doing this that I’m missing.  Thanks.
    w
    • 2
    • 3
  • l

    lively-crowd-44886

    09/27/2021, 2:25 AM
    Hey all! Does anyone know if there was a follow up issue for a cleaner way to reparent a resource https://github.com/pulumi/pulumi/issues/458 ? Happy to create one and try my luck at fixing it!
    b
    f
    • 3
    • 2
  • p

    prehistoric-kite-30979

    09/29/2021, 5:10 PM
    Hi everyone, I’d like to make some progress on getting this PR merged as its now blocking us from adopting the pulumi kubernetes operator. https://github.com/pulumi/pulumi/pull/7891 Any help/feedback would be appreciated!
    • 1
    • 1
  • f

    fierce-ability-58936

    10/01/2021, 1:44 AM
    Is Pulumi participating in Hacktoberfest 2021?
Powered by Linen
Title
f

fierce-ability-58936

10/01/2021, 1:44 AM
Is Pulumi participating in Hacktoberfest 2021?
View count: 1