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

    average-greece-53878

    05/28/2021, 4:41 PM
    Howdy. Using azure-native, how do I specify that a Windows VM should be generation 2? Looks like that's only shown as an output?
  • e

    early-france-31838

    05/28/2021, 4:49 PM
    Hi Why there are no code example for node in official documentation? Also, no reference for the options. how to use them. https://www.pulumi.com/docs/reference/pkg/aws/ec2/eip/
    b
    • 2
    • 2
  • p

    polite-continent-12996

    05/28/2021, 5:55 PM
    Hey guys, Just want to get some of your thoughts on what the best workflow for pulumi is?  Specifically in CICD/Code management. Do you guys keep all infrastructure code separate from application code? or together all in one and a single deployment pipleline?
    c
    a
    • 3
    • 2
  • b

    busy-cricket-68352

    05/28/2021, 8:27 PM
    I’m looking for someone with Pulumi and Python experience looking to make extra money. Ping me here, or y@indeni.com.
    b
    • 2
    • 1
  • g

    green-dentist-53234

    05/28/2021, 9:50 PM
    Hello, Could someone please advise me how I can set up a custom domain for cloud.HttpServer? Somehow I can't get an instance of apigateway.API from cloud.HttpServer. Thank you very much
  • b

    best-vase-91139

    05/29/2021, 5:21 PM
    Hey guys, anyone else experiences slowness after upgrading to pulumi 3.0? The preview/up duration increased 10m after upgrading from v2 to v3. We are using Pulumi from the Brazil region
    b
    • 2
    • 3
  • b

    broad-dog-22463

    05/30/2021, 12:31 PM
    message has been deleted
  • d

    dazzling-sundown-39670

    05/30/2021, 7:15 PM
    Is there an API for
    <http://app.pulumi.com|app.pulumi.com>
    ?
    b
    l
    • 3
    • 3
  • f

    freezing-zoo-29688

    05/31/2021, 2:59 AM
    Hello I had an issue here and couldn't find the solution on the documentation I created a
    gcp.container.NodePool
    with
    management=gcp.container.NodePoolManagementArgs(
            auto_repair=False,
            auto_upgrade=False
    )
    But I got an error
    **creating failed**
    * error creating NodePool: googleapi: Error 400: Auto_upgrade and auto_repair cannot be false when release_channel STABLE is set., badRequest
    Then I deleted the management and tried to
    pulumi up
    again but I get the error
    * googleapi: Error 404: Not found: node pool "dev-preemptible-nodes-8d7b054" not found., notFound
    Pulumi didn't create the NodePool and now it is trying to update. How can I force to retry the creation ?
    l
    • 2
    • 9
  • e

    elegant-pager-5412

    05/31/2021, 5:02 AM
    Morning. AWS Layer Extensions are up and running and they cause some logical issues with Pulumi. Say we install the Layer extension for Lumigo or Sentry, they automatically add environment variables and layers to the selected lambdas. Pulumi however does not recognize these and attempts to delete those when running
    pulumi up
    . Is there any way we can easily configure it so that Pulumi won’t attempt to delete those? Perhaps there is an easy way to import the configurations instead?
  • c

    curved-pharmacist-41509

    05/31/2021, 6:54 AM
    What is the best way to delay an update to a resource for say 30 seconds. When deploying a IAM change for a lambda it would be good to ensure those changes are 30 seconds apart, without making the changes in code separately
  • b

    broad-dog-22463

    05/31/2021, 6:55 AM
    I’ve done it with an apply like this
  • b

    broad-dog-22463

    05/31/2021, 6:56 AM
    https://github.com/pulumi/pulumi-rke/blob/c51a708bfe25c5ee0001b2aa8dcbf71b68d66afb/examples/cluster/nodejs/index.ts#L86
  • c

    curved-pharmacist-41509

    05/31/2021, 6:58 AM
    Great, thanks @broad-dog-22463!
  • e

    elegant-pager-5412

    05/31/2021, 8:51 AM
    Is there any way I can ignore certain layers/environment variables during
    pulumi up
    ?
  • g

    great-optician-69584

    05/31/2021, 2:43 PM
    hi to all, is there a way in pulumi to add resources on each run ?
    l
    • 2
    • 2
  • r

    red-football-97286

    06/01/2021, 8:17 AM
    Alright everyone, thinking of switching to Golang to build AWS infra from TypeScript? Anyone using Go to build?
  • c

    colossal-vr-62639

    06/01/2021, 8:53 AM
    I see this from time to time and it's stuck again now at Iam:GetUser...
  • c

    colossal-vr-62639

    06/01/2021, 8:53 AM
    I've cancelled the activity and rerun it a couple of times... I've verified the credentials and nothing is looking odd there.
    r
    • 2
    • 8
  • w

    white-pencil-38837

    06/01/2021, 9:03 AM
    Duplicate resource URN with helm when using RoleList with multiple Roles in different namespaces Prometheus operator chart lets you install multiple roles with the same names into different namespaces: https://github.com/helm/charts/blob/master/stable/prometheus-operator/templates/prometheus/role-specificNamespace.yaml#L13 This breaks pulumi, because both the resource apiVersion, kind and name is the same for these roles, resulting in generating the same URN for them. eg: 
    error: Duplicate resource URN 'urn:pulumi:sbx::k8s-monitoring::kubernetes:<http://helm.sh/v2:Chart$kubernetes:rbac.authorization.k8s.io/v1:Role::monitoring/sbx-kubernetes-monitoring-prometheus';|helm.sh/v2:Chart$kubernetes:rbac.authorization.k8s.io/v1:Role::monitoring/sbx-kubernetes-monitoring-prometheus';> try giving it a unique name
  • p

    purple-lawyer-35555

    06/01/2021, 9:45 AM
    hi all! any idea on how to run in a clean way a build script just in the middle of pulumi deployment flow? i'm using webpack. e.g.:
    // pulumi deploys server resources --> Pulumit.output gives me the 'endpoint'
    execSync(
      pulumi.interpolate`yarn build --env endpoint_url=${endpoint}`
    )
    // pulumi deploys the frontend resources
    b
    c
    p
    • 4
    • 10
  • r

    ripe-russia-4239

    06/01/2021, 3:21 PM
    Hey everyone! 👋🏻 I've a question for the team about the Pulumi SDK design. Given a Pulumi
    Output
    appears to be conceptually the same as a Future, could the Pulumi
    Output
    type (in theory) extend the language's Future equivalent, rather than operating independent of it? In the Node SDK, for example, it would be really nice to be able to
    await
    an
    Output<T>
    like I would a
    Promise<T>
    . I'm also curious about the design decision to use constructors as the provisioning call rather than e.g. a method on the object. As it's all more for my curiosity than anything, I thought I'd ask here rather than on GitHub ☺️
    b
    b
    • 3
    • 2
  • r

    rough-window-15889

    06/01/2021, 3:43 PM
    Any advice for getting Pulumi config set-all --path --plaintext '["parent.name"].["nested.name"]'=value to work in powershell? Tried using backticks to escape the brackets but no luck.
    r
    • 2
    • 3
  • d

    damp-tiger-87899

    06/01/2021, 4:44 PM
    Is there any way to install a Helm chart without Pulumi's expansion of it?
    r
    • 2
    • 1
  • t

    thankful-artist-81037

    06/01/2021, 5:35 PM
    Filed this bug on an issue we are having during our scheduled releases. Can you please have look?
  • e

    echoing-zebra-28421

    06/01/2021, 5:57 PM
    Hello everyone. I have a question. Does anyone know how to save an object to DynamoDB? I am doing this:
    const notificationTable = new aws.dynamodb.Table(
      "notificationTable",
      {
        readCapacity: 10,
        writeCapacity: 10,
        hashKey: "UUID",
        attributes: [
          {
            name: "UUID",
            type: "S",
          },
        ],
      }
    );
    
    const attributes = {
      name: "Name custom",
      item: [{ key: "key-custom", value: "value-custom" }],
    };
    
    const obj = {
      UUID: { S: "04b12ed0-b431-11eb-87d6-03d0311066e5" },
      CreatedAt: { S: "2021-05-13T21:20:37.275Z" },
      Event: { S: "custom_events" },
      NamedUser: { S: "<mailto:alex.quintero@gmail.com|alex.quintero@gmail.com>" },
      Attributes: { S: JSON.stringify(attributes) },
      Status: { S: "SEND" },
    };
    
    const notificationTableItem = new aws.dynamodb.TableItem(
      "notificationTableItem",
      {
        tableName: notificationTable.name,
        hashKey: notificationTable.hashKey,
        item: `${JSON.stringify(obj)}`,
      }
    );
    My result is:
  • e

    echoing-zebra-28421

    06/01/2021, 5:57 PM
    Is it possible to make me stay as an Object? something like that:
    {
      name: "Name custom",
      item: [{ key: "key-custom", value: "value-custom" }],
    }
    l
    • 2
    • 2
  • b

    bland-florist-21412

    06/01/2021, 8:18 PM
    I was hoping to get some advice on how to use Pulumi to spin up Google Cloud Endpoints with OpenAPI auth (https://cloud.google.com/endpoints/docs/openapi/get-started-cloud-functions#reserve_hostname). The hard part is that it's a few steps and involves replacing a resource. Specifically, step 1 is to run something via Google's cloud run. It doesn't matter what container is run at this point; all that matters is we're "reserving" a unique hostname for our eventual cloud run service. Then we use the uniquely assigned hostname to create a text file that defines the routing and auth, then we include that generated text file in a docker image, and finally we replace the initial cloud run service with this new container. Since Pulumi's model is generally describe what you want and Pulumi will "make it so" this doesn't map neatly as we have to create a cloud run service that is temporary and we don't want it running when we're all done. The best idea I've come up with so far is a custom, dynamic resource provider that will create the temporary cloud run service and then "lie" in its
    diff
    method and such so that if it's been replaced it says not changes need to happen. I got that mostly working but it seems you can't use
    pulumi_gcp
    to create the temporary service inside the custom provider (I get an error that says, "Program run without the Pulumi engine available; re-run using the
    pulumi
    CLI" even though it was run via
    pulumi up
    ). Even if I could use
    pulumi_gcp
    I don't see a way to destroy the resource created in the
    create
    method when
    delete
    is called. So I can make this work with native API calls or Google's own Python SDK but that all seems like more work than should be necessary. Is there a clean way to do this?
  • d

    delightful-salesclerk-16161

    06/01/2021, 9:15 PM
    Hi friends, as you probably already know, the Stack Overflow annual developer survey is currently out. This is the first time that Pulumi has appeared in the survey. 😛artypus: We would love it if you ✅ the box for Pulumi if you haven't already filled out the survey. We would really appreciate the support! 🙏
    ✅ 3
  • g

    gorgeous-minister-41131

    06/02/2021, 1:43 AM
    https://github.com/pulumi/pulumi/issues/4032 — any reason why
    --target-dependents
    doesn’t actually work in simple situations, like the one demonstrated in the issue? I’m having and been having the same behavior since I started using Pulumi 2.10 and it exists in 3.3 still today. Is this just a feature that is half-working and poorly documented?
Powered by Linen
Title
g

gorgeous-minister-41131

06/02/2021, 1:43 AM
https://github.com/pulumi/pulumi/issues/4032 — any reason why
--target-dependents
doesn’t actually work in simple situations, like the one demonstrated in the issue? I’m having and been having the same behavior since I started using Pulumi 2.10 and it exists in 3.3 still today. Is this just a feature that is half-working and poorly documented?
View count: 1