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

    incalculable-spring-4592

    12/16/2022, 11:59 AM
    how to provide allocation id for NAT gateway
    m
    v
    • 3
    • 4
  • w

    wooden-ice-60753

    12/16/2022, 6:45 PM
    Hi all. I'm installing a helm chart with Pulumi (Typescript if it matters). Today I discovered that one of the third-party charts I'm installing relies pretty heavily on the
    .Release.IsInstall
    built-in object for helm. I'm currently using k8s.helm.v3.Chart for the deployment. It seems that it always sets
    .Release.IsInstall
    to
    true
    and
    .Release.IsUpgrade
    to
    false
    . k8s.helm.v3.Release does set these values right. I'm in a bind. Either I need to get it working for k8s.helm.v3.Chart or switch to k8s.helm.v3.Release. For the former, I'm coming up empty. For the later, there isn't any docs on that. Just swapping the Chart to Release doesn't work gracefully because pulumi will try to delete resources at the same time helm will try to create resources with the same name. Any tips?
    v
    c
    • 3
    • 6
  • s

    sparse-intern-71089

    12/17/2022, 1:55 PM
    This message was deleted.
    b
    h
    • 3
    • 2
  • s

    stocky-father-68249

    12/19/2022, 11:22 AM
    Hey guys is there any way to get the arn of an aws apigateway authorizer resource in pulumi AWS. As far the api docs, it only lists the id as the output apart from the implicit ones. I'm using python btw. I need it to create a eventsource mapping for a lambda.
    b
    • 2
    • 4
  • g

    gorgeous-architect-28903

    12/19/2022, 12:34 PM
    Hi, I drive basically all of my Pulumi operations via the Automation API, including with a custom CLI tool, and I really miss the nice colorized tree output I get from the actual Pulumi CLI. Is there some easy / supported way to use the same printer via the Automation API?
    b
    • 2
    • 3
  • s

    strong-winter-28568

    12/19/2022, 12:47 PM
    Hi, I am working with Pulumi typescript and following the kubernetes getting started example. at one point we get the IP address of a service
    const ip = frontend.status.loadBalancer.apply(
        (lb) =>  lb.ingress[0].ip || lb.ingress[0].hostname
    );
    I am trying to use this IP in a client (Browser) application configuration. But I am not able to convert it into a string . I tried different methods including
    ip.apply(i => `http://${i}/abc`)
    Second
    pulumi.interpolate `http://${ip}/abc`
    Third
    pulumi.concat(`http://`, ip, `/abc`)
    Every time I get the same error,
    toString()
    is not supported, or
    toJSON()
    is not supported. Can someone help me please ?
    a
    • 2
    • 1
  • e

    enough-sunset-73069

    12/19/2022, 2:09 PM
    Hello, Anyone worked with python Pulumi - Cloudflare regarding Rulesets? I need to import the existing Cloudflare Managed Rulesets but as documented is not supported yet. Any work arounds/ideas how to approach that?
    b
    • 2
    • 1
  • f

    fierce-xylophone-92490

    12/19/2022, 6:07 PM
    We may get a new contender in the IaC world next year 😄. Pulumi, CloudFormation, Terraform, and K8s YAML would potentially be "backends" that this "cloud-oriented programming language" compiles to. The creator said, this isn't to be thought of as IaC, but rather, a programming language that uses IaC for a lot of its function. Anyway, it's called
    wing
    or
    winglang
    . I'm sure it'll be a while before it's production ready, but still neat to think about.
    b
    q
    q
    • 4
    • 5
  • g

    gorgeous-accountant-60580

    12/20/2022, 11:55 AM
    Hi. I’m attempting to do a regular function call (to a non-Pulumi SDK) using values from a resource I’ve created with Pulumi. To access the concrete values I’m doing this inside an ApplyT. It seems like this isn’t being executed. Could this be because I’m not depending on any values output from the function, so that this has no bearing on the Pulumi resource graph? What would be the correct way to do something like this?
    b
    • 2
    • 2
  • s

    strong-match-67698

    12/21/2022, 12:09 PM
    I've got a notification that a new version of pulumi is available:
    A new version of Pulumi is available. To upgrade from version '3.49.0' to '3.50.0'
    but then in chocolatey doesn't seem to find it Maybe it wasn't added to repo?
    a
    l
    +2
    • 5
    • 13
  • a

    ambitious-father-68746

    12/21/2022, 12:30 PM
    Is there a way to trigger something in Pulumi when a resource in destroyed or created? Like some lifecycle hooks?
    m
    • 2
    • 1
  • n

    narrow-quill-60617

    12/21/2022, 3:35 PM
    I have a question to add load balancer target group to AWS EKS worker node autoscaling group, when the EKS worker node group is created with eks.NewNodeGroup api in golang, there is an arrayoutput of the node group resource which contains the autoscaling group name, how can I get the autoscaling group name out, the name is like this format eksNodeGroup.Resources[0].autoscalingGroups[0].name, I can only output the resources with eksNodeGroup.Resources.Index(pulumi.Int(0))
  • c

    cuddly-hairdresser-74798

    12/21/2022, 9:13 PM
    is there some way to do something like
    console.log()
    from Pulumi TS code?
    l
    • 2
    • 2
  • l

    little-journalist-4778

    12/22/2022, 10:35 AM
    Someone could help us pushing for the update of the github provider? we submitted a PR https://github.com/pulumi/pulumi-github/pull/277
    l
    c
    +2
    • 5
    • 10
  • g

    green-plastic-3690

    12/22/2022, 11:21 AM
    I couldn't able to convert ARM template to Pulumi TS script, The error message is "no metadata found for resource type 'Microsoft.Storage/storageAccounts' and version '2022-05-01'" while using the latest API version. If I change the API version to "2019-04-01" then convertion happening without any error. My question is how can I find exact API version of each resource. TIA.
  • c

    clever-painter-96148

    12/22/2022, 11:48 AM
    Is there a way to tell Pulumi which provider to use when deleting a resource? Specific issue detailed there: https://pulumi-community.slack.com/archives/CRFURDVQB/p1671709677923459
  • g

    gentle-angle-52500

    12/22/2022, 10:26 PM
    How do I select an AWS VPC by name using awsx?
    m
    • 2
    • 2
  • g

    gentle-angle-52500

    12/22/2022, 10:26 PM
    I can only find functions to create a new VPC.
  • c

    cuddly-computer-18851

    12/22/2022, 10:56 PM
    Did it work before you added addon.ts? Those TS errors are from index it looks like. Can you paste the relevant addon.ts code?
    a
    • 2
    • 4
  • e

    enough-garden-22763

    12/23/2022, 12:41 AM
    Hi all. I've got a little testing POC to share today from the company hackathon. It allows recording your Pulumi program interaction with resource providers and then testing the program against mock providers that replay the pre-recorded interactions. A bit rough around the edges but I could actually use it on one of our realistic tests. https://github.com/pulumi/pulumi/pull/11710
  • n

    narrow-cpu-35517

    12/23/2022, 10:14 AM
    Hi, I am trying to setup cognito user pool but the required attributes are not being set from the API
    const userpool = new aws.cognito.UserPool(`${name}-userpool`, {
                usernameAttributes: ["email", "phone_number"],
                accountRecoverySetting: {
                    recoveryMechanisms: [
                        {
                            name: "verified_phone_number",
                            priority: 1
                        }, {
                            name: "verified_email",
                            priority: 2
                        }
                    ]
                },
                smsConfiguration: {
                    externalId,
                    snsCallerArn: snsRole.arn,
                    snsRegion: "us-east-1",
                },            
                schemas: [
                    {
                        name: "given_name",
                        attributeDataType: "String",
                        mutable: true
                    },
                    {
                        name: "family_name",
                        attributeDataType: "String",
                        mutable: true
                    }
                ]
            })
  • w

    witty-vegetable-61961

    12/23/2022, 3:16 PM
    I have y first end-to-end stable Pulumi program (provisioning Auth0 resources). Given that it reads data off a csv to create the resources and get values, doing the same thing via Terraform would be a real struggle. Reall y feel like Pulumi is the right choice!
    m
    • 2
    • 1
  • w

    witty-vegetable-61961

    12/23/2022, 3:16 PM
    Plus of course being dotnet, the tooling is the same as my application for code analysis etc, which is a beneift.
  • s

    square-laptop-45713

    12/23/2022, 6:23 PM
    question about using Helm - what version of Helm is used by the cli? Is this configurable? if not, how can we ensure we know what version is used so that I can keep my local environment in sync with that version of Helm based on which version of Pulumi I’m using?
  • b

    brainy-church-78120

    12/23/2022, 7:09 PM
    what sign in method are you using?
    a
    a
    • 3
    • 3
  • e

    elegant-printer-13257

    12/24/2022, 12:29 AM
    Hi! I asked chatgpt about this, but it doesn't understand me 😄 I want to use sqs queue url inside of my aws lambda that I defined through awsx.apigateway.API with pulumi. How do I use that url so that it is properly serialized? here's the pseudo-code:
    const queue = new aws.sqs.Queue(`${project}-${stack}-queue`);
    const api = new awsx.apigateway.API(`${project}-${stack}-api`, {
      routes: [
        {
          path: "/{proxy+}",
          method: "POST",
          eventHandler: async (request, context) => {
            const sqs = new AWS.SQS();
            sqs.sendMessage({
              MessageBody: "hi"
              QueueUrl: queue.id,
            });
          },
        },
      ],
    });
  • v

    victorious-church-57397

    12/24/2022, 7:45 PM
    Merry Christmas pulumity! 🎄 ❤️
  • b

    billions-accountant-89861

    12/26/2022, 6:04 AM
    i am trying to get pulumi work with vultr in golang using
    <https://github.com/vincentbernat/pulumi-vultr>
    but can't install it
    e
    m
    • 3
    • 6
  • c

    creamy-napkin-46533

    12/27/2022, 4:21 AM
    Hi All, I am following below How to guide https://www.pulumi.com/registry/packages/aws/how-to-guides/ec2-webserver/ Getting below error during pulumi up View Live: https://app.pulumi.com/pankajkrm/aws-webserver/aws-webserver/previews/9f05a381-36dd-4db7-892b-95ce27da7698 Type Name Plan Info + pulumi😛ulumi:Stack aws-webserver-aws-webserver create 1 warning └─ aws:ec2:SecurityGroup webserver-secgrp 1 error Diagnostics: aws:ec2:SecurityGroup (webserver-secgrp): error: aws:ec2/securityGroup:SecurityGroup resource 'webserver-secgrp' has a problem: Missing required argument: The argument "ingress.0.to_port" is required, but no definition was found.. Examine values at 'SecurityGroup.Ingresses'. pulumi😛ulumi:Stack (aws-webserver-aws-webserver): warning: get_ami is deprecated: aws.getAmi has been deprecated in favor of aws.ec2.getAmi
    b
    e
    m
    • 4
    • 12
  • c

    clever-painter-96148

    12/27/2022, 8:58 AM
    When using pulumi-command, is there a way for the delete script to access the output of the create script? e.g. How do I make something like this work?
    mktemp = Command('mktemp', create='mktemp', delete='rm {path}')
    e
    w
    • 3
    • 4
Powered by Linen
Title
c

clever-painter-96148

12/27/2022, 8:58 AM
When using pulumi-command, is there a way for the delete script to access the output of the create script? e.g. How do I make something like this work?
mktemp = Command('mktemp', create='mktemp', delete='rm {path}')
So far I achieved this using:
from pulumi import Output, export
from pulumi_command.local import Command

mktemp_create = Command('mktemp-create', create='mktemp')
mktemp_delete = Command('mktemp-delete', delete=Output.format('rm {path}', path=mktemp_create.stdout))
export('tmp_file', mktemp_create.stdout)
But that feels wrong. 🤔
e

echoing-dinner-19531

12/27/2022, 10:00 AM
I think that's as good as you can do now. The commands are just literal strings and they can't refer to the same command they're created in.
c

clever-painter-96148

12/27/2022, 10:00 AM
OK, good to know, thanks @echoing-dinner-19531!
w

white-balloon-205

12/27/2022, 7:13 PM
This question has come up a few times recently - I opened https://github.com/pulumi/pulumi-command/issues/167 to track it.
View count: 1