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
getting-started
  • s

    straight-painter-33893

    01/12/2022, 2:23 PM
    Hi Everyone, I hope this is the right channel to ask this question, please let me know if it is off topic. I need to create a package with a set of components that bundles the installation of multiple helm charts and k8s manifests. Right now, following the getting-started guide, I have a package with one component installing 2 helm charts and 1 k8s manifest. I generated the SDKs and I have an example using the go SDK, but I whenever I
    pulumi up
    it, it fails at the stage when my component is invoked. The error I get is
    +   └─ pulumi:providers:kubernetes  k8sprovider  create     
     
    Diagnostics:
      pulumi:pulumi:Stack (grafana-dev):
        error: an unhandled error occurred: program exited with non-zero exit code: 1
     
        panic: reflect: NumField of non-struct type pulumi.Output
        +   └─ pulumi:providers:kubernetes  k8sprovider  create     
    goroutine 15 [running]:
        reflect.(*rtype).NumFiel 
    d(0x18437a0, 0x1b70560)
        	/usr/lib/golang/src/reflectDiagnostics:
    /type.go:976 +0xb7
        <http://github.com|github.com>  pulumi:pulumi:Stack (grafana-dev):
    /pulumi/pulumi/sdk/v3/go/pulumi.newOutput(0xc00062a118, 0x1ddd120, 0x18437a0, 0    error: an unhandled error occurred: program exited with non-zero exit code: 1
    xc00053c200, 0x1, 0x1, 0x1ddd101, 0x18437a0) 
    
        	/var/home/patriziobruno/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/types.go:288 +0xfb
        <http://github.com/pulumi/pulumi/sdk/|github.com/pulumi/pulumi/sdk/>    panic: reflect: NumField of non-struct type pulumi.Output
    v3/go/pulumi.(*Context).newOutput(...)
        	/var/hom    goroutine 15 [running]:
    e/patriziobruno/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.    reflect.(*rtype).NumField(0x18437a0, 0x1b70560)
    1/go/pulumi/context.go:1    	/usr/lib/golang/src/reflect/type.go:976 +0xb7
    499
        <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>    <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.newOutput(0xc00062a118|github.com/pulumi/pulumi/sdk/v3/go/pulumi.newOutput(0xc00062a118>, 0x1ddd120, 0x18437a0, 0xc00053c200, 0x1, 0x1, 0x1ddd101, 0x18437a0)
    .(*Context).makeResourceState(0xc00062a000, 0x1ba2fd0, 0x1f, 0xc0003ee433, 0xd, 0x1dd1370, 0xc000634000, 0xc0003442d0, 0x0, 0x0, ...)
        	/var/home/patriziobruno/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/context.go:1057 +0x728
        <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource(0xc00062a000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource(0xc00062a000>, 0x1ba2fd0, 0x1f, 0xc0003ee433, 0xd, 0x0, 0x0, 0x1dd1370, 0xc000634000, 0x0, ...)
        	/var/home/patriziobruno/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/context.go:776 +0x585
          	/var/home/xxxxx/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/types.go:288 +0xfb
      <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResource(...)|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResource(...)>
        <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).newOutput(...)|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).newOutput(...)>
        	/var/home/patriziobruno/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/context.go:669
           	/var/home/xxxxx/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/context.go:1499
     <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).Reg|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).Reg>    <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).makeResourceState|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).makeResourceState>(0xc00062a000, 0x1ba2fd0, 0x1f, 0xc0003ee433, 0xd, 0x1dd1370, 0xc000634000, 0xc0003442d0, 0x0, 0x0, ...)
    isterComponentResource(...)
        	/var/home/patriziobruno/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/context.go:859
        	/var/home/xxxxx/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/context.go:1057 +0x728
        <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource(0xc00062a000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource(0xc00062a000>, 0x1ba2fd0, 0x1f, 0xc0003ee433, 0xd, 0x0, 0x0, 0x1dd1370, 0xc000634000, 0x0, ...)
        	/var/home/xxxxx/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/context.go:776 +0x585
        <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResource(...)|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterResource(...)>
        	/var/home/xxxxx/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/context.go:669
        <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterComponentResource(...)|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).RegisterComponentResource(...)>
        	/var/home/xxxxx/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.21.1/go/pulumi/context.go:859
        
        error: program failed: waiting for RPCs: rpc error: code = Unavailable desc = transport is closing
        exit status 1
    b
    • 2
    • 11
  • c

    cuddly-twilight-4727

    01/12/2022, 3:41 PM
    Hi, I’m looking for help so I can ssh into a Google Cloud VM with pulumi/command.
    b
    • 2
    • 8
  • w

    wide-finland-25364

    01/13/2022, 7:03 AM
    Hi. I tried to create a simple AWS EKS cluster for testing purpose.
    import * as awsx from "@pulumi/awsx";
    import * as eks from "@pulumi/eks";
    
    // Create a VPC for our cluster.
    const vpc = new awsx.ec2.Vpc("pulumi-test-vpc", {
      cidrBlock: "10.0.0.0/16",
      numberOfAvailabilityZones: 3,
    });
    
    // Create an EKS cluster.
    const cluster = new eks.Cluster("pulumi-test-cluster", {
      instanceType: "t2.small",
      desiredCapacity: 2,
      minSize: 1,
      maxSize: 2,
    });
    
    // Export the cluster's kubeconfig.
    export const kubeconfig = cluster.kubeconfig;
    For some reason, VPC was created with empty name " ", and my EKS cluster was attached to the Default VPC. It took 14m+ to finish deploying. When I destroyed the deployment, weird enough it deleted the whole thing correctly, even the empty name VPC. Any ideas?
    e
    • 2
    • 4
  • c

    creamy-vr-17865

    01/13/2022, 10:06 AM
    Hi, I am trying to create a Kubernetes namespace in Python code but can't seem to find a way to get pulumi to actually use the namespace name I would like rather then the generated name. This is important as the namespace must be exactly "snyk-monitor" and not "snyk-monitor-randomdata". My code is as follows how can I change this so that the K8s namepsace created in the cluster is actually "snyk-monitor" itself
    monitor_namespace = Namespace (resource_name='snyk-monitor')
    p
    • 2
    • 6
  • p

    polite-kite-18322

    01/18/2022, 12:28 AM
    Hey there - trying to provision MongoDB Atlas. The instructions online are pretty complete, but I'm new to Pulumi and new to MongoDB so at a bit of a disadvantage. While configuring the secrets, i was able to create the public/private keys as directed but it seems to really want me to set another variable that's not documented:
    Diagnostics:
      pulumi:pulumi:Stack (MongoDB-dev):
        error: Missing required configuration variable 'MongoDB:mongodbatlas:orgID'
            please set a value using the command `pulumi config set MongoDB:mongodbatlas:orgID <value>`
    When I try to "import" the existing MondoDB project:
    pulumi import mongodbatlas:index/project:Project <project-id> <org-id>
    i see this:
    mongodbatlas:index:Project (<project-id>):
        error: Preview failed: could not validate provider configuration: 1 error occurred:
            * Invalid or unknown key
    Anyone have any ideas on how I can kickstart this work?
  • p

    polite-kite-18322

    01/18/2022, 12:29 AM
    When I try to set the "key" it asks for it complains about missing namespace:
    pulumi config set MongoDB:mongodbatlas:orgID <org-id>
    error: invalid configuration key: could not parse MongoDB:mongodbatlas:orgID as a configuration key (configuration keys should be of the form `<namespace>:<name>`)
    e
    • 2
    • 12
  • p

    polite-kite-18322

    01/18/2022, 12:30 AM
    (@wide-finland-25364 ^^)
  • b

    brash-stone-86819

    01/18/2022, 6:13 PM
    Hi all, I just knew about pulumi and I would ask you where can I get examples of modular code organization for python runtime. I've seen examples for typescript, but I didn't find any for python.
    b
    • 2
    • 2
  • p

    polite-kite-18322

    01/18/2022, 9:54 PM
    For MongoDB I don't see any way to inspect/provision MongoDB collections or databases. Am I missing something obvious?
  • h

    helpful-knife-18557

    01/19/2022, 3:52 PM
    Hello, I've emails pulumi through the website in regards to talking to someone for the Enterprise tier, but have not head back. How long usually can it take before the first engagement?
    b
    • 2
    • 6
  • c

    crooked-lighter-20442

    01/21/2022, 4:10 PM
    hi, I got similar case - I emailed Support regarding the price tag and no news 😕
    w
    b
    • 3
    • 3
  • f

    fancy-egg-38667

    01/21/2022, 7:31 PM
    I'm working on Pulumi and Go in vscode. What is the best way to get a debugger running?
    s
    • 2
    • 1
  • s

    sticky-exabyte-94099

    01/22/2022, 1:51 PM
    I´m trying to get Access keys connection strings from Azure Redis but but just can figure it out Here I create a Redis and then try to access the
    var redis = new AzureNative.Cache.Redis("myCache", new AzureNative.Cache.RedisArgs
    {
        EnableNonSslPort = false,
        Location = ResourceGroup.Apply(t => t.Location),
        MinimumTlsVersion = "1.2",
        RedisConfiguration = new AzureNative.Cache.Inputs.RedisCommonPropertiesRedisConfigurationArgs
        {
            MaxmemoryPolicy = "allkeys-lru",
        },
        ResourceGroupName = ResourceGroup.Apply(t => t.Name),
        Sku = new AzureNative.Cache.Inputs.SkuArgs
        {
            Capacity = 0,
            Family = "C",
            Name = "Basic",
        },
        Tags =
    {
        { "environment", StackName },
    },
    });
    
    // first I tried this
    var attempt1 = redis.AccessKeys.Apply(c => c.PrimaryKey); //Fails here!
    
    // and how can I even log out any value at all just to see
    <http://Log.Info|Log.Info>($"message {redis.AccessKeys.Apply(c=>c.PrimaryKey)}");
    When I do "up" it looks good but then it all fails with this error
    failed with an unhandled exception:
        System.NullReferenceException: Object reference not set to an instance of an object.
           at void AppStack.SetupRedis()+(RedisAccessKeysResponse c) => { } in AppStack.cs:line 24
           at Output<U> Pulumi.Output<T>.Apply<U>(Func<T, U> func)+(T t) => { }
    but if I check the portal there are AccessKeys as you can see from the images so what is the problem? How does this even work? Here is a (all) the code I have currently created https://github.com/sturlath/MyTest/blob/68592cf1495d2c802e50dcb926682106dbc88251/AppStack.cs#L612
  • t

    thousands-student-41479

    01/23/2022, 3:31 AM
    Looking for suggestions for a Greenfield project. The application is going to be Serverless and Event driven leveraging Azure cloud. Has anyone used Pulumi for automating build and deployment for Azure Functions? Any challenges towards maintenance, scalability? Also, how easy it would be to move code from Azure Functions to other provider such as AWS Lambda while using Pulumi? Appreciate, if someone has used it in production and share his experience. TIA
    w
    • 2
    • 4
  • w

    witty-honey-13693

    01/24/2022, 4:10 AM
    Hi All Iam trying to create / fetch (string format) the Azure Function Host keys through Pulumi. Tried different methods but nothing worked. Finally i was able to fetch the host keys through Powershell command. But is there a way to execute this powershell command in my pulumi stack. Refer to the the image below.
  • w

    witty-honey-13693

    01/24/2022, 4:12 AM
  • g

    great-monkey-48685

    01/24/2022, 9:10 AM
    https://twitter.com/steveebenezer/status/1485539053353443330
    r
    • 2
    • 2
  • s

    straight-painter-33893

    01/26/2022, 2:08 PM
    Hi Everyone, I was wondering what are the options to publish/install Pulumi resource provider plugins?
    e
    • 2
    • 9
  • l

    limited-arm-77537

    01/27/2022, 9:41 AM
    Hi, is there any example of creating OpenSearch (aws's elasticsaerch) with Pulumi?
    w
    • 2
    • 4
  • d

    damp-hospital-32757

    01/27/2022, 10:05 PM
    Hello i am having trouble with config secrets. I configured a secret with a key and im trying to use the value in my code. I looked at the doc and to use pulumi.Config().require_secret(<key>) and i made sure the key and value are there with the cli with pulumi config get command but when i run my code i get and error that the program run without the pulumi engine available
    e
    • 2
    • 7
  • c

    chilly-plastic-75584

    01/28/2022, 7:08 PM
    Added a few questions in Github discussions (assuming it's used, or should I post on stack overflow with tag?) I plan on going through more pulumi adoption writing and maybe I'll find the answer. In the meantime anyone with experience using pulumi with CI and dealing with config values changing constantly maybe you'll have some insight? https://github.com/pulumi/pulumi/discussions/8875
    g
    • 2
    • 2
  • g

    great-sunset-355

    01/31/2022, 9:14 AM
    Hi, we are migrating from a personal project to Pulumi Organisation. I have a question about the Access Tokens. Are there any organization access tokens? I did not see any scope settings on my personal access tokens and I definitely do not want 1 access token to have access to multiple organizations. How am I supposed to manage the access to the projects? Is a "bot" user recommended workaround for now?
    l
    • 2
    • 2
  • r

    rough-intern-34947

    01/31/2022, 9:15 AM
    Hi all, I guess there are Pulumi team members here from whom we would like to get some support. We sent this support e-mail last week but still didn’t get a response, and we need to make a decision until Tomorrow. So if anyone can take a look at this we would appreciate it. You can respond to this email: d.dimitric@levi9.com Thanks!
    Hello,
    
    We are currently qualifying Pulumi as our Infrastrucutre management tool, but we have some Information security concerns that we'd like to clear up.
    
    Our product is classified as a *Medical device* and therefore needs to conform to a high security standard, especially regarding PII.
    
    We saw this section on your website, and we would like to have a bit more information about it:
    
    > The Pulumi Service is reliable, secure, and has undergone multiple audits, including SOC2 and professional pen-testing. Because of the client/server division of responsibilities — notably that the server doesn't have direct access to your cloud credentials, runtime data, or PII — the Pulumi Service has been used in organizations with advanced compliance needs, including PCI, ISO 27001, HIPAA, and more. If you'd like to discuss any of these topics, please contact us.
    
    (copied from <https://www.pulumi.com/docs/intro/concepts/state/>)
    
    The T&C (<https://www.pulumi.com/terms-and-conditions/>) and PP (<https://www.pulumi.com/privacy/>) pages on your website didn't provide enough information, so we would just like to clear some things up:
    
    1. Can you provide any evidence about information security? What do you have in place to make sure our data is safe? There is no written policy on the website.
    2. Can you provide more details about the your SOC2 certification?
    3. Exactly what kind of data does Pulumi have access to? Be very specific please.
    4. What is the operational impact of Pulumi being unavailable?
    
    Our product currently operates in EU, and it will be available in the US, as well as Globally.
    
    These are the standards we currently implement (and possibly there will be more):
    - ISO 13485
    - ISO/IEC 27001
    - NEN 7510
    
    Thanks in advance,
    SkinVision Team
    g
    w
    • 3
    • 8
  • w

    witty-vegetable-61961

    01/31/2022, 5:02 PM
    hi all , quick question. If I am building a .NET Core program to interact with Pulumi, is a class library fine or do I need a console app? Also, does every program I made need to be a project in the "Pulumi" gui. This is a potential issue as for example I want to write code for provisioning Auth0 resources, which is not linked to a public cloud.
    e
    • 2
    • 1
  • s

    sparse-intern-71089

    01/31/2022, 9:29 PM
    This message was deleted.
    p
    a
    • 3
    • 5
  • w

    witty-vegetable-61961

    01/31/2022, 10:40 PM
    hi guys, still in the "getting started" phase of Pulumi. With output variables, what are my optins to push them into other programs? I could write c# code in the Pulumi program and push that into octopus as a variable, or are there are any other methods? In my case, I want to use the property of something I provision as a variable fgor an octopus deployment.
    e
    • 2
    • 13
  • s

    stale-iron-26898

    02/01/2022, 4:13 PM
    Hi all 👋 What should i do to support github app to print pulumi changes in PR from a running job in jenkins? (the job select stack and run
    pulumi preview
    )
    m
    • 2
    • 10
  • a

    astonishing-dentist-11149

    02/02/2022, 2:54 PM
    Are there good quick-start courses available for Pulumi or is this a hit to docs kind of tool? I don't mind reading the docs at all, but I do love a good educational video course
    b
    • 2
    • 2
  • w

    witty-vegetable-61961

    02/02/2022, 7:43 PM
    hi guys, an obvious questionbut in a pulumi program where do i put environment specific data? eg a web app name which is different in dev, test, uat, prd. do these go in the pulumi yaml files ie pulumi.dev.yaml?
    l
    e
    +3
    • 6
    • 34
  • g

    glamorous-glass-45224

    02/03/2022, 5:29 AM
    Can you have different stacks supported by different backends? e.g. Dev / Staging / Prod uses Pulumi Service, but Local uses
    file:///somewhere/
    ?
    c
    • 2
    • 5
Powered by Linen
Title
g

glamorous-glass-45224

02/03/2022, 5:29 AM
Can you have different stacks supported by different backends? e.g. Dev / Staging / Prod uses Pulumi Service, but Local uses
file:///somewhere/
?
c

clever-sunset-76585

02/03/2022, 5:37 AM
Yes you could. That requires you to
pulumi login <backendUrl>
before you create the stack using
pulumi stack init
.
g

glamorous-glass-45224

02/03/2022, 5:38 AM
Sweet! Thanks!
c

clever-sunset-76585

02/03/2022, 5:39 AM
Once the stacks are created you must switch accounts using
pulumi login ...
each time you want to work with the respective stacks. It's a bit of a pain but it should work
g

glamorous-glass-45224

02/03/2022, 5:39 AM
That's fine! Thank you so much 😄
c

clever-sunset-76585

02/03/2022, 5:39 AM
I am curious, though. What's the reason for wanting to do that if you don't mind answering? Feel free to DM me
View count: 3