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

    quick-fall-21011

    01/02/2022, 7:57 AM
    Hi all, I'm at the end of the road with trying to get a pulumi project to deploy my stack. The issue stems from having a base image that has both dotnet and also docker installed. My pulumi project has
    var image = new Image("my-image", new ImageArgs
            {
                ImageName = Output.Format($"{registry.LoginServer}/{CustomImage}:v1.0.0"),
                Build = new DockerBuild
                {
                    Context = relativePath
                },
                Registry = registryInfo,
            });
    Running this locally on my machine works fine, since I have dotnet (which builds my pulumi csproj) and also have docker (which is required to build this image. Running this in circle-ci, I'm not able to find an image that satisfies both conditions. Ideally I'd like to have my whole stack defined in pulumi, but looks more like I need to build the container outside of pulumi thru some other circle-ci orb. Any suggestions/thoughts would be appreciated
    s
    b
    • 3
    • 18
  • f

    famous-accountant-52516

    01/02/2022, 2:26 PM
    Hello 🙂 Is there any roadmap\timeline for OCI (Oracle cloud) support? Thanks!
    b
    • 2
    • 1
  • e

    echoing-activity-32278

    01/03/2022, 4:38 AM
    Is it possible to let pulumi create names in the format of role-friar-3742fb instead of role-friar3742fb. Basically It would be better to add a - in between the random chars.
    b
    • 2
    • 1
  • w

    witty-belgium-75866

    01/03/2022, 8:15 AM
    Hi, regarding to Auth0, There is a way to disable connections for specific applications? For some reason, some connections like google-oauth2 are automatically enabled for my applications ( connections )
  • s

    sticky-exabyte-94099

    01/03/2022, 8:37 AM
    Good morning. My first time trying out Pulumi was yesterday and I really want to get over few errors that are stopping me from trying it out fully. I created a repo with my setup and description of the errors. https://github.com/sturlath/MyTest The problems I can´t get over • I get "could not find role" here • trying to give 2 services access to the db (here and here). I probably should create admin once and then assign it somehow to the principal.. I would also like some pointers on my setup if that is possible. Am I organizing things "correctly" (I know its probably a matter of an opinion) . And I know I´m probably using output wrong.
    b
    • 2
    • 54
  • w

    wet-noon-14291

    01/03/2022, 9:45 AM
    Anyone that knows why one might get "Failed to parse Pulumi CLI version"? It is in a automation project, and I would rather not set the env variable to true if I don't have to.
    Error: Failed to parse Pulumi CLI version. This is probably an internal error. You can override this by setting "PULUMI_AUTOMATION_API_SKIP_VERSION_CHECK" to "true".
        at parseAndValidatePulumiVersion (/home/tomas/git/elkjopnordic/flash/src/nextapp/node_modules/@pulumi/automation/localWorkspace.ts:740:15)
        at LocalWorkspace.<anonymous> (/home/tomas/git/elkjopnordic/flash/src/nextapp/node_modules/@pulumi/automation/localWorkspace.ts:596:25)
        at Generator.next (<anonymous>)
        at fulfilled (/home/tomas/git/elkjopnordic/flash/src/nextapp/node_modules/@pulumi/pulumi/automation/localWorkspace.js:18:58)
  • l

    late-energy-66663

    01/03/2022, 5:30 PM
    Hi I am new to Golang and Pulumi so sorry for the basic question . I am following the below example to create the webserver. This example works perfect to create a single VM at a time . We are interested in creating multiple VM with single request. Lets say developer select 3 or 4 Webserver vms with name of web1,2,3 respectively , which should create vms accordingly.We are using automation api with golang. We are looking more dynamic way for creating vm rather than repeating the VM code for each vm we want to add.Any advise will be helpful. https://github.com/pulumi/automation-api-examples/tree/main/go/vm_manager_azure
    b
    • 2
    • 34
  • l

    lively-author-18255

    01/03/2022, 8:46 PM
    Hi, The Pulumi Githib App is installed but it does not seem to work. I found this discussion but there is nothing definitely saying it does not work or if it needs additional config, pulumi version etc. Any guidance on this? Thanks!
  • w

    wet-noon-14291

    01/03/2022, 10:37 PM
    If you build and publish a docker image using pulumi, will it also build the docker image during preview? When looking in the logs for my github actions, it looks like it builds the image twice...
    b
    • 2
    • 2
  • b

    breezy-kitchen-97655

    01/04/2022, 9:42 AM
    Hi team, We using Pulumi script to update behaviours in AWS Cloudfront using Typescript We are unable to find the property to set O*bject Caching -* to use origin cache headers. Please find the attached snapshot below:
    h
    b
    • 3
    • 4
  • c

    careful-vase-44898

    01/04/2022, 5:08 PM
    I need to create a resource (B) only after another resource (A) has been physically created. (B) depends on an API call being made to (A) to grab some auto-generated credentials using the Azure API. I'm using Output.Tuple(resourceA.Name, ...) during the creation of (B), but I must be misunderstanding the timing here.
    b
    • 2
    • 6
  • p

    polite-napkin-90098

    01/04/2022, 5:36 PM
    I'm trying to create an EKS cluster using a mix of the AWS Native package and the AWS Classic. I'm using the Classic to create a security group as it didn't seem possible in the Native, and am then trying to use the Id of that security group (e.g. sg-########) https://www.pulumi.com/registry/packages/aws/api-docs/ec2/securitygroup/#id_go < the docs here seem to me to be pretty clear that there is an output called Id and thus for a security group object called sg I should be able to get it using sd.Id, but when I try that I get the error message
    ./main.go:153:22: sg.Id undefined (type *ec2.SecurityGroup has no field or method Id)
    I'll post my code as a thread to avoid clutter.
    b
    • 2
    • 6
  • f

    future-window-78560

    01/04/2022, 8:57 PM
    Hello! I am using the Pulumi_eks package to create fargate cluster on eks. I have created custom Vpc and subnets for the fargate cluster. The cluster is created, everything is fine but there are no nodes and pods. Any recommended solution for it?
    b
    • 2
    • 12
  • o

    orange-byte-86458

    01/04/2022, 9:09 PM
    Hey, all! It seems like EKS questions are rather popular today so, here’s another one 🙂 Is there a way to tell awsx Cluster to NOT create NATs for private subnets? I have a weird need where I need to provision a k8s cluster where I can talk to the control plane (EKS) from the outside, but the actual nodes don’t have any internet access. I’m looking for a quickest way to create such a setup, and really hope to use Pulumi for this 🙂 Thanks for any help!
    b
    • 2
    • 6
  • a

    alert-fireman-78468

    01/05/2022, 7:07 AM
    Am I doing something wrong? We have a pulumi stack (on Google cloud) that includes a SSL certificate, a load balancer using that certificate and a bunch of other stuff. I ran a
    pulumi up
    where we changed domain name so a new SSL certificate needed to be replaced. A new certificate was provisioned, and the old resource was marked for deletion. But all deletions are normally queued until the last stages of a pulumi up (which is great). But before pulumi made it to the step to change the load balancer to use the new certificate, some other (unrelated) resource failed deployment. We fixed that issue and ran another
    pulumi up
    . But this second attempt starts with deleting the resources that are marked for deletion in the previous attempt. This means it starts with the deletion of the old certificate but it hasn't ran the steps yet to change the load balancer to use the new cert. This makes the deletion fail since you can't delete a cert that is still in use. Is there a way to tell pulumi to also postpone the deletes from previous updates until all creates/updates have completed?
    t
    l
    • 3
    • 3
  • d

    damp-school-17708

    01/05/2022, 1:31 PM
    I've just got a crash with a plain simple pulumi up
    Resources:
        + 7 to create
        ~ 1 to update
        8 changes. 187 unchanged
    
    Do you want to perform this update? yes
    Updating (sandbox):
         Type                 Name          Status
         pulumi:pulumi:Stack  link-sandbox
     C^C
    Resources:
        7 unchanged
    
    Duration: 8s
    
    panic: send on closed channel
    
    goroutine 1696 [running]:
    <http://github.com/pulumi/pulumi/pkg/v3/engine.diagEvent(0x14002572cc0|github.com/pulumi/pulumi/pkg/v3/engine.diagEvent(0x14002572cc0>, 0x14000b23320, {0x1400213c5a0, 0x1c}, {0x140011adce0, 0x51}, {0x1054413c2, 0x5}, 0x0)
    	/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/engine/events.go:578 +0x178
    <http://github.com/pulumi/pulumi/pkg/v3/engine.(*eventEmitter).diagErrorEvent(...)|github.com/pulumi/pulumi/pkg/v3/engine.(*eventEmitter).diagErrorEvent(...)>
    	/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/engine/events.go:602
    <http://github.com/pulumi/pulumi/pkg/v3/engine.(*eventSink).Errorf|github.com/pulumi/pulumi/pkg/v3/engine.(*eventSink).Errorf>(0x14002572cc0, 0x14000b23320, {0x0, 0x0, 0x0})
    	/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/engine/eventsink.go:88 +0x170
    <http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeChain(0x14002bd7200|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).executeChain(0x14002bd7200>, 0x9, {0x140017c3140, 0x1, 0x1})
    	/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/resource/deploy/step_executor.go:231 +0x304
    <http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker.func1(0x14002bd7200|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker.func1(0x14002bd7200>, 0x9, {{0x140017c3140, 0x1, 0x1}, 0x1400231e6c0})
    	/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/resource/deploy/step_executor.go:376 +0xa4
    created by <http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepExecutor).worker>
    	/private/tmp/pulumi-20211229-22668-k5zkrv/pkg/resource/deploy/step_executor.go:373 +0x1f8
    the problem is that if I do pulumi up again it doesn't find any resource, how to get the state back? (using s3 as backend for state and latest pulumi version)
    • 1
    • 1
  • l

    lemon-train-62069

    01/05/2022, 7:05 PM
    Hey ho! Im trying to set up a SQS queue using pulumi, but i cant figure out for the life of me how to push message into that that queue. for example:
    new aws.lambda.CallbackFunction(
      "lambdaThatPushesToSqs,
      {
        callback: async (ev, ctx) => {
          // i want to do something like this
          mySqsQueue.sendMessage("myEvent)
        }
       }
    )
    
    // to trigger this
    mySqsQueue.onEvent("myEvent", () => console.log("hello"))
    l
    • 2
    • 5
  • w

    wonderful-finland-34377

    01/05/2022, 9:32 PM
    Hi team! I was trying to install pulumi within docker alpine and got this error might someone have any idea why? Thanks in advance!
    l
    • 2
    • 8
  • f

    fast-ability-28628

    01/06/2022, 2:21 AM
    Hey team I was following examples for gcp cloud run and I am getting a strange error. Does anyone have any idea's Thanks in advance!
    b
    • 2
    • 2
  • r

    red-football-97286

    01/06/2022, 9:11 AM
    Have big issues trying to build AWS with WAFv2 with Go. When doing a
    pulumi up
    it just sits there on either the preview (or live if skipping the preview) and does nothing. I'm using the latest cli version, 3.21.0.
    • 1
    • 1
  • f

    freezing-umbrella-80278

    01/06/2022, 9:45 AM
    https://stackoverflow.com/questions/70605159/how-to-get-the-cluster-node-ips-using-pulumi
  • s

    steep-beach-52652

    01/06/2022, 11:25 AM
    cant import an existing aws vpc
    aws:ec2:Vpc (test-vpc):
        error: aws:ec2/vpc:Vpc resource 'test-vpc' has a problem: Missing required argument: The argument "cidr_block" is required, but no definition was found.. Examine values at 'Vpc.CidrBlock'.
        error: Preview failed: one or more inputs failed to validate
    b
    • 2
    • 1
  • s

    steep-beach-52652

    01/06/2022, 11:25 AM
    the vpc in aws has the cider block defined
  • m

    magnificent-lifeguard-15082

    01/06/2022, 11:53 AM
    Has anyone encountered any oddities working with nix (ie.
    nixpkgs.pulumi-bin
    ) and versions of plugins? In CI (Github actions where admittedly nix is not fully configured yet) it complains the aws plugin isn't available - though it is in my package-lock.json
    pulumi:providers:aws (default_4_33_0):
        error: no resource plugin 'aws-v4.33.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource aws v4.33.0`
    Weirder, when I run locally it warns of a mismatch:
    resource plugin aws is expected to have version >=4.33.0, but has 4.27.2
    But when checking versions locally it seems ok..
    % pulumi plugin ls
    NAME       KIND      VERSION  SIZE    INSTALLED  LAST USED
    aws        resource  4.33.0   360 MB  1 day ago  38 minutes ago
    docker     resource  3.1.0    39 MB   1 day ago  38 minutes ago
    terraform  resource  5.5.1    85 MB   1 day ago  19 hours ago
    b
    • 2
    • 24
  • f

    freezing-umbrella-80278

    01/06/2022, 1:32 PM
    Here is an example of creating a managed Kubernetes cluster on DigitalOcean.
    import * as pulumi from "@pulumi/pulumi";
    import * as digitalocean from "@pulumi/digitalocean";
    
    const foo = new digitalocean.KubernetesCluster("foo", {
        region: "nyc1",
        version: "1.20.2-do.0",
        nodePool: {
            name: "front-end-pool",
            size: "s-2vcpu-2gb",
            nodeCount: 3,
        },
    });
    Example code taken from the Pulumi DigitalOcean package documentation. How do I retrieve the droplet node IPv4 addresses for use in say creating 
    DnsRecord
     resources?
    const _default = new digitalocean.Domain("default", {name: "<http://example.com|example.com>"});
    
    // This code doesn't work because foo.nodePool is just the inputs.
    const dnsRecords = foo.nodePool.nodes(node => new digitalocean.DnsRecord("www", {
        domain: _default.name,
        type: "A",
        value: node.ipv4Address,
    }));
    I assume I have to either use the async methods such as https://www.pulumi.com/registry/packages/digitalocean/api-docs/getkubernetescluster/
    function getKubernetesCluster(args: GetKubernetesClusterArgs, opts?: InvokeOptions): Promise<GetKubernetesClusterResult>
    But the problem then is I can't pass the cluster ID to this method as the resource has not bee provisioned yet when this method is called. I also thought of generating a resource using the static
    get
    method defined on the resource but I also don't think I have the ID of the cluster to call this method yet. https://www.pulumi.com/registry/packages/digitalocean/api-docs/kubernetescluster/#look-up
    public static get(name: string, id: Input<ID>, state?: KubernetesClusterState, opts?: CustomResourceOptions): KubernetesCluster
    p
    b
    • 3
    • 30
  • q

    quiet-plastic-34312

    01/06/2022, 7:33 PM
    anyone know if there is any initiative for pulumi oracle cloud infrasctructure?
    b
    t
    • 3
    • 2
  • l

    late-energy-66663

    01/06/2022, 9:50 PM
    Hi, I have deployed 5 EC2 VM using the Automation API , After deploying the I am looking to extract the following info for each machine using the code. Public IPv4 DNS Private IP DNS name (IPv4 only) Public IPv4 address Hostname type and Stack URN associated with particular machine . First of i would like to check if its possible using the automation api or do I need to use vanilla aws api . if yes , what would be the best approach as starting point .
    l
    • 2
    • 15
  • c

    colossal-room-15708

    01/07/2022, 3:25 AM
    Is this a known issue?
    pulumi import
    and
    pulumi up
    using the
    azure-native
    package is super slow within a docker container. It wasn't like this before I started migrating from the "old" azure package. It's taking at least 5 minutes every time I execute a command now, which is making the migration very slow.
    b
    • 2
    • 3
  • c

    colossal-room-15708

    01/07/2022, 3:27 AM
    Strange, because pulumi thinks it only ran for 12s
    w
    • 2
    • 4
  • m

    magnificent-lifeguard-15082

    01/07/2022, 11:57 AM
    Hello! I'm wondering what in the pulumi cli is causing the output to not show parent/child heirarchy when running within a child process (where in this case the parent is a Nx executor)? I'm imagining pulumi is detecting something about the env and flattening output.
    --color always
    works to enable colour output but heirarchy is still not there.
    b
    • 2
    • 10
Powered by Linen
Title
m

magnificent-lifeguard-15082

01/07/2022, 11:57 AM
Hello! I'm wondering what in the pulumi cli is causing the output to not show parent/child heirarchy when running within a child process (where in this case the parent is a Nx executor)? I'm imagining pulumi is detecting something about the env and flattening output.
--color always
works to enable colour output but heirarchy is still not there.
b

billowy-army-68599

01/07/2022, 2:08 PM
@magnificent-lifeguard-15082 are you parenting resources?
it's a manual process
m

magnificent-lifeguard-15082

01/07/2022, 2:08 PM
Yes
b

billowy-army-68599

01/07/2022, 2:10 PM
using automation API?
m

magnificent-lifeguard-15082

01/07/2022, 2:11 PM
Just CLI right now, would like to create a pulumi executor for Nx but time permitted. If I run pulumi directly from my terminal I see the expected output but when run from a nx task it is clearly using a different formatter. Ie.
Type                                       Name                    Plan       Info
 +   pulumi:pulumi:Stack                        platform-preview        create..   warning: resource plugin aws is expected to hav
 +   ├─ awsx:x:ec2:SecurityGroup                service                 create
Vs.
+  pulumi:pulumi:Stack platform-preview create 
 +  pulumi:pulumi:Stack platform-preview create API key does not start with "SG.".
 +  pulumi:pulumi:Stack platform-preview create 2 db service
I guess because in the former it can update previous output otherwise it defaults to streaming.
Ideally though it would just buffer and output the hierarchal output once it's done at the end as it's super useful compared to a flat list
b

billowy-army-68599

01/07/2022, 2:15 PM
oh yeah, this is by design at the moment. if you need the fancy output you'll need to open an issue.
m

magnificent-lifeguard-15082

01/07/2022, 2:18 PM
way ahead of you 😉 https://github.com/pulumi/pulumi/issues/8703
Put it as a bug but happy to reclass as a refinement
View count: 3