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

    echoing-postman-88590

    04/14/2021, 12:02 PM
    Hi, I would like to extract all the resource attributes when running
    unittest
    . I have prepared the following 2 files: https://pastebin.com/qnykN38V and https://pastebin.com/vcWbyn3Y. On running
    python3 -m unittest test.py
    I get:
    {<pulumi.output.Output object at 0x7ff78348bb80>: <pulumi.output.Output object at 0x7ff78343f670>, <pulumi.output.Output object at 0x7ff783497d00>: <pulumi.output.Output object at 0x7ff783458490>, <pulumi.output.Output object at 0x7ff7834a5730>: <pulumi.output.Output object at 0x7ff78346df40>, <pulumi.output.Output object at 0x7ff7834a51f0>: <pulumi.output.Output object at 0x7ff783404a00>, <pulumi.output.Output object at 0x7ff7834b0490>: <pulumi.output.Output object at 0x7ff783415af0>}
    . How do I force pulumi to return the Output? Thanks
  • b

    billowy-laptop-45963

    04/14/2021, 1:42 PM
    I'm trying to revive an old project that had examples tests written with the first go integration test sdk. How do I get around the
    Failed to load gRPC binary module because it was not installed for the current system
    try running npm rebuild
    errors?
    • 1
    • 1
  • f

    fierce-holiday-69805

    04/14/2021, 1:49 PM
    Hi sorry if this is a FAQ, I’ve done some searching and haven’t found anything. As a Terraform user who’s new to Pulumi, I’m surprised to see that the graph of my stack has only two levels. There’s just the stack, and then it depends on every other resource. And in the graph I don’t see any relationships between any of the resources. This is surprising to me because Terraform automatically registers the relationships (dependencies) between resources and then renders a more useful graph. Am I missing something?
    b
    h
    +2
    • 5
    • 25
  • f

    fierce-holiday-69805

    04/14/2021, 2:15 PM
    As someone new to Pulumi who create a TS project and is now working on a Python project, I’m wondering why the Python SDK doesn’t seem to include
    interpolate
    and whether it might get it (or something equivalent) at some point?
    b
    r
    • 3
    • 35
  • d

    damp-school-17708

    04/14/2021, 4:34 PM
    Hi again, I am trying to follow the advice of splitting a 'monolitic' infra into 'mini-projects'... So I've started to move out the lambdas into a 'funtions' projects and then leave everything else into an 'infrastructure' project. If I pulumi up in infra I delete the functions, that's good, and expected. When I pulumi up in the functions project I reference the required infrastructure, all good, create the functions, good. But it's also trying to delete all the other infrastructure. Both projects share the same 'dev' stack. What I am doing wrong? Or this is expected as first step to move things around? Thanks a lot
    b
    g
    • 3
    • 7
  • a

    acceptable-army-69872

    04/14/2021, 5:50 PM
    I started playing with running pulumi out of a jenkins job. One project went fine, but this new projet has an issue creating asset archives.
    new pulumi.asset.AssetArchive({
          ".": new pulumi.asset.FileArchive("./lambda/CSVDownload"),
        })
    which is a typescript function that creates a zip of some lambda code. When I run that out of jenkins, I get errors
    Error: failed to register new resource csvDownloadLambda [aws:lambda/function:Function]: 2 UNKNOWN: failed to compute archive hash: couldn't read archive path './lambda/CSVDownload': stat ./lambda/CSVDownload: no such file or directory
    Which I think is something to do with jenkins workspaces and symlinks. While this may end up being a typescript specific question (and I should head to #typescript) I'm wondering if anyone else has hit similar bumps on running out of a ci pipeline, or any suggested paths to go down for resolving this. I can't be creating a new pattern.
    • 1
    • 2
  • b

    billowy-laptop-45963

    04/14/2021, 7:08 PM
    There is a PULUMI_CONFIG_PASSPHRASE on a stack without any secrets. How can i blank the passphrase if I do not know it?
  • f

    fast-whale-9064

    04/14/2021, 7:22 PM
    Trying to upgrade Pulumi via Homebrew, and getting an error
    Error: No such file or directory @ rb_file_s_stat - /usr/local/Cellar/pulumi/2.25.0/INSTALL_RECEIPT.json
    Anyone else having the same issue?
    b
    • 2
    • 9
  • p

    purple-train-14007

    04/14/2021, 8:32 PM
    Something I’ve noticed with the latest GA version of pulumi. With azure network resources, sometimes (very rarely but common enough to raise an eyebrow) asynchronous tasks like build a Vnet and subnets will sometimes fail at building the subnets because it doesn’t wait for the Vnet resource to complete building. On 📱please excuse typos.
    b
    • 2
    • 2
  • m

    many-psychiatrist-74327

    04/15/2021, 1:44 AM
    👋 hello! I have a couple k8s questions: • I need to manage kubernetes clusters in multiple clouds (AWS, GCP). Would the best recommendation be to use Crosswalk for Kubernetes? • I’d like to use the newly released Autopilot in GKE. But it looks like the pulumi API doesn’t support it yet. Do you have an ETA on when it might be supported? Thanks!
    l
    • 2
    • 3
  • c

    cuddly-dusk-95227

    04/15/2021, 5:16 AM
    Noob approach question: I want to provision an eks cluster, part of my bootstrapping process requires resources to be created just long enough to start the thing that’s going to continue running. I can’t find any good examples for temporary or ephemeral resources in pulumi. I believe the idiomatic way to do this is with a dynamic provider to make these calls. Is dynamic providers the right way to go? or is there some other mechanism?
    w
    • 2
    • 6
  • p

    purple-train-14007

    04/15/2021, 5:29 AM
    Is there a way to mock the pulumi engine for testing?
    p
    • 2
    • 2
  • h

    handsome-state-59775

    04/15/2021, 5:47 AM
    i'm trying to destroy a test stack, in which i have marked a lot of resources as protected. how can i easily list these URNs, so i can do something like
    pulumi state list | grep protected | xargs -I{} pulumi state unprotect {}
    ?
    ✅ 1
    r
    b
    p
    • 4
    • 7
  • r

    rhythmic-actor-14991

    04/15/2021, 9:06 AM
    hi, I use pulumi install ingress on aws eks, but the pulumi always tells me:
    * the Kubernetes API server reported that "yyy/xx-ingress" failed to fully initialize or become live: Resource operation was cancelled for "xx-ingress"
            * Ingress has at least one rule that does not target any Service. Field '.spec.rules[].http.paths[].backend.serviceName' may not match any active Service
    c
    • 2
    • 10
  • m

    microscopic-translator-37500

    04/15/2021, 10:08 AM
    Hi all, I am experiencing an error when importing a resource into pulumi. When I run
    pulumi import -f import-resources.json
    with the following file (abbreviated for clarity - the other resources import fine) I get an error.
    {
      "resources": [
        {
          "type": "gcp:compute/vPNTunnel:VPNTunnel",
          "name": "vpn-tunnel",
          "id": "projects/<prj>/regions/<region>/vpnTunnels/vpn-tunnel"
        }
      ]
    }
    Here's the error:
    Diagnostics:
      pulumi:pulumi:Stack (network-testing):
        error: update failed
     
      gcp:compute:VPNTunnel (vpn-tunnel):
        error: gcp:compute/vPNTunnel:VPNTunnel resource 'vpn-tunnel' has a problem: Required attribute is not set. Examine values at 'VPNTunnel.SharedSecret'.
        error: one or more inputs failed to validate
    Since I did not see a documented way to set this attribute I tried creating the object in my pulumi programming with the
    _import_
    annotation like so:
    vpn_tunnel = gcp.compute.VPNTunnel(
        "vpn-tunnel",
        name="vpn-tunnel",
        shared_secret="redacted",
        target_vpn_gateway="redacted",
        opts=pulumi.ResourceOptions(
            import_="projects/<prj>/regions/<region>/vpnTunnels/vpn-tunnel",
        ),
    )
    However, that resulted in an error as well (when running
    pulumi preview
    ):
    warning: inputs to import do not match the existing resource; importing this resource will fail
        = gcp:compute/vPNTunnel:VPNTunnel: (import)
            [id=projects/<prj>/regions/<region>/vpnTunnels/vpn-tunnel]
            [urn=urn:pulumi:testing::network::gcp:compute/vPNTunnel:VPNTunnel::vpn-tunnel]
            [provider=urn:pulumi:testing::network::pulumi:providers:gcp::default_4_21_0::9400fa64-3729-3efb-bb74-7183febcae7b]
          + sharedSecret: "redacted"
    How can I import that resource cleanly?
  • r

    red-football-97286

    04/15/2021, 10:42 AM
    I'm trying to build a pulumi stack from new with from codecommit,
    pulumi new <https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/pulumi_pki> --cwd .\test2\ --non-interactive
    Seems easier with github as you can obtain a token, but is there a way with codecommit? Maybe passing secrets? Getting the error 
    error: authentication required
    . I've added AWS keys as environment variables as well as in the credentials file.
  • h

    hundreds-receptionist-31352

    04/15/2021, 11:52 AM
    Hi, Is possible to run pulumi code using multiple cloud providers at the same time? I need to create resources in azure and aws when pulumi is executed: ej: const vnetwork = new vnet.Vnet('VirtualNet',{resourceGroup}); //for azure provider =new aws.Provider({....}) const main = new aws.ec2.Vpc("main", { //for aws cidrBlock: "10.0.0.0/16", },{provider:provider }); I have tried setting the providers but always I'm loosing the credentials: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found. If I comment the azure line it starts working.
    b
    c
    l
    • 4
    • 7
  • b

    bored-oyster-3147

    04/15/2021, 2:33 PM
    Question about pulumi iterating over S3Object resources when deploying a static website and each file is a separate resource pulumi manages. How does pulumi compare & diff file content? Does it download and compare, or do it some other way?
    • 1
    • 1
  • p

    proud-art-41399

    04/15/2021, 2:36 PM
    Anyone knows if there's a Pulumi alternative to this? https://github.com/dealmore/terraform-aws-next-js
  • d

    damp-school-17708

    04/15/2021, 3:21 PM
    I've been bashing my head for two days on this and I still don't understand the issue. (https://pulumi-community.slack.com/archives/C84L4E3N1/p1618418077072900) Even if I create a completely new project (from the template) and then I do a pulumi up (new folder, etc, the only 'configured' thing is that I am logged in pulumi (S3/AWS)) the new project tries to delete all my resources that are in another project. Is there really no other way to get out of this situation? As we are not yet in production with our code I am tempted TBH to start from scratch but before I do thats I was wondering if I am doing something completely stupid with the tooling. I don't see why you can't just start as many projects as you want and keep adding state.
    b
    a
    b
    • 4
    • 22
  • d

    damp-school-17708

    04/15/2021, 5:38 PM
    nice it seems like the new pulumi version removes pending operations automagically (do export/import)
    :magic_wand: 1
    😛-wise: 2
    p
    b
    • 3
    • 4
  • p

    purple-train-14007

    04/15/2021, 6:31 PM
    What is the difference between a native provider and non native provider in Pulumi? Can you help me understand? Im being asked by leadership at my company and this is kind of the point where they decide whether or not we go with Pulumi or not as our defacto tool
    b
    • 2
    • 5
  • g

    green-musician-49057

    04/15/2021, 7:08 PM
    Anyone else get this error upgrading pulumi, on macOS Big Sur, using
    brew upgrade pulumi
    ==> Upgrading 1 outdated package:
    pulumi 2.24.1 -> 2.25.0
    ==> Upgrading pulumi 2.24.1 -> 2.25.0 
    ==> Downloading <https://homebrew.bintray.com/pulumi-2.25.0.big_sur.bottle.1.tar.gz>
    #=#=#                                                                         
    curl: (22) The requested URL returned error: 404 Not Found
    Trying a mirror...
    ==> Downloading <https://ghcr.io/v2/homebrew/core/pulumi-2.25.0.big_sur.bottle.1.tar.gz>
    ==> Downloading from <https://github.com/-/v2/packages/container/package/homebrew%2Fcore%2Fpulumi-2.25.0.big_sur.bottle.1.tar.gz>
    #=#=#                                                                         
    curl: (22) The requested URL returned error: 404 
    Error: Failed to download resource "pulumi"
    Download failed: <https://ghcr.io/v2/homebrew/core/pulumi-2.25.0.big_sur.bottle.1.tar.gz>
    p
    b
    • 3
    • 7
  • p

    purple-train-14007

    04/15/2021, 7:23 PM
    Have you guys thought of adding Pulumi to
    winget
    ? Microsoft just released their own packagemanager
    👍 1
  • p

    purple-train-14007

    04/15/2021, 7:25 PM
    ^ It works with the msft store too so if you add pulumi there...
  • b

    broad-dog-22463

    04/15/2021, 7:49 PM
    @purple-train-14007 we have... but Winget still requires an MSI / installer and Pulumi doesn't have that at this time
  • p

    purple-train-14007

    04/15/2021, 7:50 PM
    Oh I see. Thanks such a quick response
  • b

    broad-dog-22463

    04/15/2021, 7:50 PM
    As soon as they losen the restrictions it will be on there - it's why we leverage chocolatey atm
  • b

    broad-dog-22463

    04/15/2021, 7:51 PM
    it's a simplier install
  • p

    purple-train-14007

    04/15/2021, 7:52 PM
    What restrictions do they have set? (I actually dont know)
Powered by Linen
Title
p

purple-train-14007

04/15/2021, 7:52 PM
What restrictions do they have set? (I actually dont know)
View count: 1