https://pulumi.com logo
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
  • w

    wonderful-napkin-50018

    03/30/2021, 11:20 AM
    I have an Input which includes a string array (
    subnetIds
    ) and need to convert it to an
    Input<string>[]
    (so an array of string inputs). How can I do this?
    l
    • 2
    • 6
  • s

    salmon-salesclerk-93543

    03/30/2021, 11:26 AM
    is there any Github provider related channel available ?
  • s

    salmon-salesclerk-93543

    03/30/2021, 11:40 AM
    I am trying to set the Github Repository permission through 'pulumi_github' package. And there's a method
    RepositoryCollaborator
    where I can set the permission for users object but there is no such option to add team permission. Can anyone please point me to right direction.
  • f

    freezing-quill-32178

    03/30/2021, 12:16 PM
    I have problem with rotating passphase password
    pulumi stack change-secrets-provider passphrase
    error: decrypting secret value: failed to decrypt: incorrect passphrase, please set PULUMI_CONFIG_PASSPHRASE to the correct passphrase
    When the correct old password is set to
    PULUMI_CONFIG_PASSPHRASE
    nothing happens and i’m not prompted for new password
    pulumi stack change-secrets-provider passphrase
    Migrating old configuration and state to new secrets provider
    According to this https://github.com/pulumi/pulumi/pull/5865 it should be available and working… I’m trying to migrate stacks from local storage file to GCS with new passwords and then later migrate again to the Pulumi SAAS…
    pulumi version                                        
    v2.23.2
  • h

    hallowed-camera-52062

    03/30/2021, 12:41 PM
    Hi! 👋🏼 I'd like to know if there is a way to gracefully exit a Pulumi Typescript program under a specific condition? For example:
    const environmentName: string = pulumi.getStack().toLowerCase()
    
    // Filter the resources that belong to the current environment
    const resources: ResourceDefinition[] = resourcesDefinitions.filter(
      (r: ResourceDefinition) => r.environment === environmentName
    )
    
    if (resources.length === 0) {
      console.log(
        `There are no resources to be deployed onto the current environment ('${environmentName}').`
      )
      process.exit(0)
    }
    
    resources.map((resource) => {
      const getConventionName: ConventionNameGetter = useNamingConvention(
        resource.name,
        resource.environment
      )
      provisionResource(resource, getConventionName)
    })
    I tried implementing this with
    process.exit(0)
    but it seems like it's not a good idea:
    The Pulumi runtime detected that 712 promises were still active
    
    at the time that the process exited. There are a few ways that this can occur:
    
      * Not using `await` or `.then` on a Promise returned from a Pulumi API
    
      * Introducing a cyclic dependency between two Pulumi Resources
    
      * A bug in the Pulumi Runtime
    
    Leaving promises active is probably not what you want. If you are unsure about
    
    why you are seeing this message, re-run your program with the `PULUMI_DEBUG_PROMISE_LEAKS`
    
    environment variable. The Pulumi runtime will then print out additional
    
    debug information about the leaked promises.
    
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
    Resources:
        + 1 to create
    b
    b
    d
    • 4
    • 6
  • b

    better-shampoo-48884

    03/30/2021, 12:42 PM
    I'm trying to move a stack between an old local-disk project and a new azure-storage backed project - so I exported the stack, moved the resulting json to the new project, and tried to import it from there. It shows no resources. I'm doing something wrong, and I have no idea what (including the thought that moving a stack from one project to another could be possible) 🙂. Ideas?
    b
    c
    • 3
    • 28
  • f

    freezing-quill-32178

    03/30/2021, 1:26 PM
    Hello all, Anyone have idea how to change passphase password of a stack… i’m trying to move it to different backend bucket in order to be able to reference different stack… im not able to do it since the stacks have different passwords, and i dont see option in
    pulumi.StackReference
    to provide password
    c
    • 2
    • 4
  • p

    purple-train-14007

    03/30/2021, 1:50 PM
    Hello, is this thing on?
    🎤 4
  • r

    red-football-97286

    03/30/2021, 2:16 PM
    Does anyone have an idea why I keep getting this error on a codebuild webook,
    aws:codebuild:Webhook (build-setup-webhook):
        error: 1 error occurred:
            * error creating CodeBuild Webhook: InvalidInputException: Project source does not support webhook
    code,
    new aws.codebuild.Webhook('build-setup-webhook', {
      projectName: buildProject.name,
      filterGroups: [
        {
          filters: [
            {
              type: 'EVENT',
              pattern: 'PUSH',
            },
            {
              type: 'HEAD_REF',
              pattern: 'main',
            },
          ],
        },
      ],
    });
  • d

    damp-school-17708

    03/30/2021, 3:00 PM
    Question, how do you handle 'conditional creation of resources'? I give you an example: we want only one codestar connetion with github and we want to share that across different stacks. ATM we do an if stack === dev { createNewCodestarConnection} else { getCodeStarConnection} Is there any better way? Thanks
    b
    • 2
    • 7
  • t

    tall-scientist-89115

    03/30/2021, 4:12 PM
    dealing with azure-native redis cache returning accessKeys only when it updates or creates. What's the best way to generate a secret from an optionally returned resource value? (My assumption is if I add a conditional secret create, pulumi will assume it is not declared and therefore delete the secret when the redis cache is not updated or created)
    a
    • 2
    • 1
  • p

    purple-train-14007

    03/30/2021, 5:11 PM
    is there a way to have a pulumi project deploy to multiple regions? I dont want to just deploy to WestUS-2. (Azure)
    g
    l
    • 3
    • 65
  • p

    purple-train-14007

    03/30/2021, 5:12 PM
    I guess it would just be a separate stack huh?
  • a

    able-crayon-21563

    03/30/2021, 6:03 PM
    Question, is Pulumi interoperable with Terraform Enterprise? Imagine I’m an ISV and I license my software to a customer who uses Terraform Enterprise and asks for a terraform configuration to deploy my software with. Of course, I’d prefer to give them a Pulumi program while meeting the requirement. Any ideas?
    b
    • 2
    • 3
  • n

    narrow-airport-65967

    03/30/2021, 9:05 PM
    Hi!, I have a question. I have: Uri pulumi.Input
    pulumi:"uri"
    , how to use pulumi.Input, I tried, Uri: pulumi.Input{"string"}, but don't work, I tried Uri: pulumi.Input{"key":"value"}, but dont work too, somebody help me ?
    l
    • 2
    • 9
  • f

    full-artist-27215

    03/30/2021, 9:29 PM
    I have a general modeling question. So far, when creating ComponentResources, I've been storing the child resources as members of my ComponentResource "container", and setting the
    ResourceOption(parent=self)
    in all the child resources as well. In this way, my programming language object structure and my Pulumi resource structure are the same. Is there any inherent reason that the two should always be the same? That is, if I want to create a child resource and register it for Pulumi with
    ResourceOption(parent=self)
    , but not keep it around within my ComponentResource "container" (e.g., because I have no need to access any of its properties anywhere else), will that get me into trouble? Likewise, if I were to register the child resource with
    ResourceOption(parent=some_other_thing)
    , would that give me problems? I think I might be more inclined to do the former than the latter, and can think of some usecases for it, but want to make sure that I'm not running afoul of some implicit assumptions in how Pulumi operates. Thanks.
    l
    • 2
    • 2
  • e

    elegant-carpet-8859

    03/30/2021, 10:18 PM
    Should I have to be typecasting everything from a StackReference in TS? Here's an example:
    const otherstack = new StackReference("org/project/stack");
    
    export const network = otherstack.getOutput("network") as unknown as azure.network.VirtualNetwork
    export const primaryProvider = otherstack.getOutput("primaryProvider") as unknown as azure.Provider
    export const resourceGroup = otherstack.getOutput("resourceGroup") as unknown as azure.core.ResourceGroup
    This is the only way I could get the TS to compile, but I'm also having difficulty using these (the provider doesn't work as a provider for creating a new k8s cluster for example) so I have a feeling I'm doing something wrong
    b
    • 2
    • 4
  • e

    elegant-carpet-8859

    03/30/2021, 10:18 PM
    since it also doesn't match the docs
  • m

    millions-market-17062

    03/31/2021, 7:53 AM
    Is it possible to disable this message
    p
    • 2
    • 2
  • f

    future-refrigerator-88869

    03/31/2021, 10:39 AM
    Hi everyone. I have made a k8s cluster with aws load balancer controller. I have managed to expose the right things and it generally works fine. However, every time i run
    pulumi up
    , it will update the secret token of the service account (that's what i believe it does at least). That will always show up as a pulumi update. My question now is: Is that intentional ? Is it supposed to show a pulumi update with every
    pulumi up
    ? If not, can anyone point me in the right direction of what to check in order to fix this ?
    👆 2
    💯 1
    b
    • 2
    • 21
  • c

    clever-cartoon-41433

    03/31/2021, 11:42 AM
    Can someone help me debug my dynamic provider? Only like twenty lines. An output is not populating and I'm not sure why. This is happening for one stack but not the other.
    p
    • 2
    • 5
  • h

    handsome-pencil-40959

    03/31/2021, 12:30 PM
    Hi everyone 🙂 vspehre plugins seams to have an issue with 403 : pulumi plugin install resource vsphere 2.13.2
    b
    • 2
    • 9
  • l

    lemon-monkey-228

    03/31/2021, 3:09 PM
    How do people manage state when they use blob storage like GCS?
  • l

    lemon-monkey-228

    03/31/2021, 3:10 PM
    Looks like I have to create a bucket per service if I want fine-grained access control. Wondered if anyone had any insight to usage patterns.
  • l

    lemon-monkey-228

    03/31/2021, 3:10 PM
    At some point, I’d like to write a Kubernetes secret backend storage akin to how Helm does it
  • g

    green-musician-49057

    03/31/2021, 3:13 PM
    Question about organizing Pulumi projects & stacks. If we wanted to build out our infra using a simpler project/stack organization at first (1 project, and 1 stack for each environment, Dev/Staging/Prod), would we be able to migrate to a more modular setup at a later time? It would be nice to separate resources that are expected to change often from the resources that are not, but we don't necessarily want to take on that extra complexity up front.
    👍 1
    c
    b
    • 3
    • 8
  • l

    lemon-monkey-228

    03/31/2021, 3:21 PM
    Also, I’ve created the following for (hopefully) a bit of discussion: https://github.com/pulumi/pulumi/issues/6667
  • l

    lemon-monkey-228

    03/31/2021, 3:21 PM
    (About having a ‘stateless mode’)
    b
    • 2
    • 3
  • s

    sparse-intern-71089

    03/31/2021, 9:33 PM
    This message was deleted.
    b
    • 2
    • 1
  • r

    red-football-97286

    04/01/2021, 9:05 AM
    Morning, how can I change the version of node that pulumi tells lambda to use from TypeScript?
Powered by Linen
Title
r

red-football-97286

04/01/2021, 9:05 AM
Morning, how can I change the version of node that pulumi tells lambda to use from TypeScript?
View count: 1