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

    straight-sunset-92336

    06/17/2022, 7:43 AM
    I've created some Customresources and trying to have one of them depending on another one using dependsOn, but the first resource is not being created before the second one.
    const myfirstcustomresource= new FirstFunction(functionname, { resourcegroupname: MyResourceGroupName });
    const mysecondresource = new Getkeys("keyresource", { resourcegroupname: MyResourceGroupName, keysname: functionname}, { dependsOn: [myfirstcustomresource] })
    The deployment tries to create the second resource before the first one is created: Error: invocation of azure-native:web:listWebAppHostKeys returned an error: request failed /subscriptions/xxxxx/resourceGroups/<resourcegroupname>/providers/Microsoft.Web/sites/<functionname>/host/default/listkeys: autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The Resource 'Microsoft.Web/sites/<functionname>' under resource group <resourcegroupname> was not found. Any good ideas what could be causing this?
  • s

    some-caravan-90203

    06/17/2022, 10:38 AM
    Hey! I am trying to code a provider for our product API (wraps serverless functions). I was trying to use the dynamic provider
    pulumi.dynamic.Resource
    and provider for that. I was able to get create/update/read sort of working. Now I am looking to cross-reference already existing API resources to the pulumi managed ones. Is the
    invoke
    https://github.com/pulumi/pulumi/pull/369 functionality available for dynamic providers? I would appreciate any help or just documentation pointers on how to approach this. Thank you!
    b
    • 2
    • 4
  • e

    echoing-postman-88590

    06/17/2022, 11:32 AM
    Hi, I would like to create a new
    kubernetes.apiextension.CustomResource
    but the inputs should be read from a kubernetes yaml. Any ideas? Thanks
    q
    • 2
    • 2
  • q

    quaint-pillow-20530

    06/17/2022, 11:33 AM
    Hey Team! Will Pulumi core team build Google Ai Platform soon?
    b
    • 2
    • 2
  • e

    elegant-fountain-6809

    06/17/2022, 1:22 PM
    Hi everyone - anyone got experience adding local ssd disks to a gcp compute instance? I just can't work out how to do it 😞 is there a specific syntax to the
    attachedDisks
    property?
    Think I've sussed it - there's a scratchDisks property
  • i

    important-australia-792

    06/17/2022, 3:39 PM
    Hey guys, just kicking the tires here so far, but this is a really cool product. Thanks for all of your work.
    🙌 2
  • b

    better-pencil-34948

    06/17/2022, 5:39 PM
    I've had to destroy a k8s cluster from under pulumi. pulumi really wants to refresh state by checking things on the pods which don't exist. Is there a way to get a toposorted list of resources which depend on another resource so I can just run down the list and delete all of the k8s dependent ones?
    b
    s
    b
    • 4
    • 30
  • s

    shy-hydrogen-95871

    06/17/2022, 9:43 PM
    Hello, Is it any way to recreate a resource based on ANY update of another resource? Example: After AWS Glue Job is changed (any field), we want to recreate a GlueJobStart resource (custom dynamic resource) Thank you!
    b
    • 2
    • 1
  • c

    careful-oil-55681

    06/17/2022, 11:40 PM
    anybody have a good example of exporting a complex object in a stack output?
  • c

    careful-oil-55681

    06/17/2022, 11:40 PM
    struggling with either a map of maps or array of maps
  • w

    wide-fall-7466

    06/18/2022, 9:57 AM
    Hi guys 👋, Pulumi is amazing product, appreciate your work! I created some organizations (team plan) but there is no
    settings/org-tokens
    page in the org settings panel, does this mean I need to upgrade to the enterprise version to use the organization level token properly? Can team plan users only be managed using account tokens, and how should we distinguish between multiple organizations? Thanks ❤️
    q
    • 2
    • 5
  • c

    clean-dentist-2515

    06/19/2022, 3:58 PM
    I came back to my pulumi project after a while away, which involved getting a new laptop (apple M1) it seems like I have this problem https://www.pulumi.com/docs/support/troubleshooting/#403-http-error-fetching-plugin i.e. the Digital Ocean provider - I had been using v3.1.1 but I can’t install that on my new laptop, and if I install latest version it can’t refresh the stack the instructions for fixing it sound simple:
    1. Open your Pulumi program on a non-arm64 based computer
    2. Update your packages (pip / nuget / npm / go) and run
    pulumi up
    3. Once the update is complete, you can open the new, updated Pulumi program on your arm64-based system
    I booted up a
    --platform=linux/amd64
    docker container and cloned my project, installed pulumi but actually I am not sure what to do next I have installed the old version of the provider… do I install the latest version too? and then if I
    pulumi up
    it can get state using the old provider, and will update it using latest version? not really clear what the fix is here
    b
    • 2
    • 2
  • i

    incalculable-monkey-35668

    06/19/2022, 10:49 PM
    Hi, Does anyone know the answer to this question? https://pulumi-community.slack.com/archives/C01PF3E1B8V/p1655611190820939
  • a

    adorable-computer-41765

    06/20/2022, 11:32 AM
    Pulumi Community - We created a #finops channel to hear your ideas and examples of ways you have used Pulumi in you finops practice. Also I am at finopsx if you want to come chat about how great Pulumi is.
  • s

    silly-city-21687

    06/20/2022, 3:59 PM
    Hi everyone, I’m working on a project to convert Terraform code to Pulumi code and have been using the Terraform-Pulumi converter to the full extent My current work includes #aws #python My main issue is although the tool works up to 70%, I need help on converting some terraform features like Versioning -enabled Defining and using variables in Pulumi using python Element, templatefile, Jsoncode I need a way to convert these aspects of terraform to Pulumi
    b
    • 2
    • 1
  • s

    stale-iron-26898

    06/20/2022, 4:18 PM
    Hi all, I have simple use-case but it become harder 😞 I use RandomPassword to generate password and save it into variable
    user_password = RandomPassword().result
    the variable ‘user_password’ I sent to my dynamic resource which only create a query with the ‘user_password’ inside (Eventually is a string ) the problem is that the value is the Object itself
    <pulumi.output.Output at 0x7ffe81ffe6d0>
    is there a way to export the value i get from randomPassword into a string in run time? 😢 Thanks!
    b
    • 2
    • 5
  • a

    ambitious-agent-35343

    06/20/2022, 4:40 PM
    Hi there, anyone with a more serious production-adjacent/ready EKS cluster Pulumi project?
  • b

    bright-horse-50102

    06/20/2022, 6:00 PM
    Getting a not so helpful
    unknown
    error when trying to destroy a stack
    Previewing destroy (beta)
    
    View Live: <https://app.pulumi.com/snip/snip/snip/previews/snip>
    
         Type                                               Name                            Plan       
     -   pulumi:pulumi:Stack                                snip                            delete     
     -   ├─ kubernetes:<http://networking.k8s.io/v1:Ingress|networking.k8s.io/v1:Ingress>         snip                            delete     
     -   snip (36 items)   
     
    Outputs:
      - snip
    
    Resources:
        - 37 to delete
    
    Do you want to perform this destroy? yes
    Destroying (snip)
    
    View Live: <https://app.pulumi.com/snip/snip/snip/updates/46>
    
         Type                                        Name                       Status                  Info
         pulumi:pulumi:Stack                         snip                       **failed**              1 error
     -   └─ kubernetes:<http://networking.k8s.io/v1:Ingress|networking.k8s.io/v1:Ingress>  snip                       **deleting failed**     1 error
     
    Diagnostics:
      kubernetes:<http://networking.k8s.io/v1:Ingress|networking.k8s.io/v1:Ingress> (snip):
        error: unknown
     
      pulumi:pulumi:Stack (snip):
        error: update failed
     
    Resources:
    
    Duration: 18s
  • s

    shy-dentist-79386

    06/20/2022, 10:23 PM
    Hi pulumi/postgresql needs to be able to connect to the database. But if I provision a db behind vpc without public accessibility (which is quite normal for db setup). what can I do for pulumi/postgresql to work??
    l
    • 2
    • 8
  • s

    shy-dentist-79386

    06/21/2022, 7:41 AM
    Hi Why does pulumi ask me to replace rds proxy every time, I got this: (see screenshot) But new creation will still be like the left hand side and it will still ask me to replace to right hand side the next time I run “pulumi up”
    e
    • 2
    • 2
  • s

    sparse-arm-65382

    06/21/2022, 7:59 AM
    Hi, i am pretty new to pulumi. And i want to popluate a pretty big stack, or multiple of those, based on some information that i can retrieve from a webservice. I think it is a brilliant idea to dynamically determinde the resources (to create) while the host-language(lets say: java) runs. I appreciate support of the idea, so just (thumb up), if you like it. But what i really want to known are the downsides of this kind of approach.
  • l

    limited-army-96747

    06/21/2022, 10:34 AM
    Hey guys, I am trying to create a serverless v2 rds cluster, but I keep getting this error. The example is copied straight from the documentation. I made sure that my pulumi is updated
    e
    • 2
    • 6
  • d

    damp-honey-93158

    06/21/2022, 1:00 PM
    hey pulumiers... I'm using the automation API to write integration tests - but I'm still in the "find out what works" phase of the test creation. My stacks and ideas are solid enough, but little things break, like the length of resource names are too long or accidentally contain a character that isn't allowed within a resource name for a cloud object. What techniques are you using to speed the dev cycle up? Is there any collection of "good practises" around? One blocker I've got is that I'm using the deployment instance stack name as a source of uniqueness in my resource names - which of course doesn't exist unless the pulumi runasync() is called - which means I have to instantiate a stack / deploy it - terribly slow. Any tips or pointers to better ways of testing are appreciated!
    e
    l
    • 3
    • 4
  • m

    most-mouse-38002

    06/21/2022, 1:56 PM
    Running
    flux bootrrap
    within a Pulumi Command Pulumi reports errors when there is no error running the underlying command. I don’t really understand why, does Pulumi assume errors whilst receiving multiple lines of output?
    🤔 1
    m
    • 2
    • 6
  • q

    quaint-book-39362

    06/21/2022, 11:15 PM
    is there a command to show the current stack? something like
    pulumi stack show-current
    . though it would be great
    pulumi stack
    supported the
    --json
    flag.
    b
    • 2
    • 5
  • i

    icy-pilot-31118

    06/22/2022, 1:55 AM
    Hi I am trying to create a AWS EKS Cluster but I am getting this error:
    Message_: "Cannot create cluster 'my-cluster-eksCluster-10fe085' because us-east-1e, the targeted availability zone, does not currently have sufficient capacity to support the cluster. Retry and choose from these availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1f",
    b
    f
    • 3
    • 10
  • g

    great-byte-67992

    06/22/2022, 4:22 AM
    Hello, does anyone know how to use Pulumi's Github Actions
    pulumi/actions@v3
    with a cloud state backend? I've set my
    azblob://
    url but the action complains that "PULUMI_ACCESS_TOKEN must be set for login during non-interactive CLI sessions". I'm not using the Pulumi SaaS
    - name: Deploy
      uses: pulumi/actions@v3
      with:
        command: preview
        stack-name: mystack
        cloud-url: <azblob://my-azure-storage-container>
    a
    • 2
    • 2
  • d

    damp-honey-93158

    06/22/2022, 5:47 AM
    I'm running integration tests and one of them references another stack. The pulumi auth is via a PAT token, and my user account has access to three orgs - the tests run fine on my machine, but in CI (on azure devops) my stackreference isn't finding the target stack and dies with pulumi😛ulumi:StackReference ref-to-registry error: unknown stack "effectiveflow/TestStandardRuntime_Up_FullSDLC/singletons". In CI I logged pulumi whoami - that's correct (it's my account name). I'm stumped as to why the CI system can't see the stack. The only thing I can think of right now is the automation api code that I'm using to create the stack is using a different org to set the stack compared to the hard-coded org I'm expecting. Is there a way to force which org the LocalWorkspace uses when calling CreateStackAsync? code:
    using var singletonStack =
        await LocalWorkspace.CreateStackAsync(new InlineProgramArgs(pulumiProjectName, singletonsStackName,
            singletonProgram));
    I'm wondering if I should set the pulumiProjectName to "org/project" instead of just "project" for example. thank you!
    🙌 1
    • 1
    • 3
  • i

    incalculable-midnight-8291

    06/22/2022, 7:17 AM
    Is there someway to change the “strategy” from “replace” (aka remove before adding new) to “rollout” (as in add new, then delete old)?
    l
    • 2
    • 6
  • f

    faint-motherboard-95438

    06/22/2022, 7:47 AM
    Hi there, We have kind of a problem, we would need to get an output (showing secrets) from a (very) old update. That does not seem possible on the website nor the CLI, but hopefully there is a way someone would know ?
    d
    • 2
    • 4
Powered by Linen
Title
f

faint-motherboard-95438

06/22/2022, 7:47 AM
Hi there, We have kind of a problem, we would need to get an output (showing secrets) from a (very) old update. That does not seem possible on the website nor the CLI, but hopefully there is a way someone would know ?
d

damp-honey-93158

06/22/2022, 8:03 AM
Do you have this running in a pipeline, and can you store those secrets out of band?
f

faint-motherboard-95438

06/22/2022, 8:10 AM
Hey, thanks for answering. We finally found that we can access the output values (as a cipher) in a json we can download on pulumi.com stack history. We were then able to import it in the new stack and retrieve the value.
(if that can helps someone in the same situation)
d

damp-honey-93158

06/22/2022, 2:54 PM
good idea!
View count: 2