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

    bored-river-53178

    04/29/2020, 10:18 AM
    When deleting a single security group (aws.ec2.SecurityGroup) rule from the list, the diff is not very helpful (I'll post an example in the thread). Googling led me to the similar problem with Terraform (https://github.com/hashicorp/terraform/issues/15180) and the Terraform issue seems to be fixed, but I cannot find anything similar for pulumi so far. Is there any fix/workaround?
    • 1
    • 3
  • f

    fierce-beach-49649

    04/29/2020, 1:52 PM
    Is there someone who has experience using pulumi to deploy helm charts with the C# SDK? Getting an error that the system cannot find the file
  • c

    calm-parrot-72437

    04/29/2020, 3:30 PM
    i'm starting to think about ci/cd with pulumi. I've got a monorepo of pulumi projects with multiple stacks for most projects. I'm thinking I need a tool to figure out which projects have been changed, run preview/up on each one of those projects and also a way of specifying the order in which the preview/ups are applied. Are there any existing open source tools that do this? Would love to hear from others who have gone down this path and how they've done it.
    c
    b
    +2
    • 5
    • 42
  • b

    brave-angle-33257

    04/29/2020, 10:54 PM
    accidentially
    ctrl-c
    a running operation, and now can't reimport the state file, but JQ works.. (it's big, 13k lines).. bug ?
    root@98a0af2021a4:/data/pulumi/infra/aws/mycompany/environment/mycompany-alarms# pulumi stack import < stage
    error: could not deserialize deployment: unexpected end of JSON input
    
    root@98a0af2021a4:/data/pulumi/infra/aws/mycompany/environment/mycompany-alarms# cat stage | jq '.version'
    3
    g
    e
    • 3
    • 12
  • g

    gifted-city-99717

    04/30/2020, 12:04 AM
    Hello Pulumi Crew! I’d like to pay y’all. Can I DM someone with signup questions? EG: 1. can I add an admin that only does billing? 2. can I point a team starter account at a private gitlab?
    ❤️ 1
    h
    • 2
    • 2
  • h

    helpful-processor-86468

    04/30/2020, 9:08 AM
    Is there a way/Is there gonna be a way to publish policies on my own backend?
  • c

    clever-crowd-18899

    04/30/2020, 2:23 PM
    Hi, I am having issue. I am using kubernetes resources configFile, when I run pulumi up, it shows in the preview list:
    +   │  ├─ kubernetes:apps:Deployment                                              istio-system/grafana                                                             create
     +   │  ├─ kubernetes:apps:Deployment                                              istio-system/kiali                                                               create
     +   │  ├─ kubernetes:apps:Deployment                                              istio-system/istio-egressgateway                                                 create
     +   │  ├─ kubernetes:core:Secret                                                  istio-system/kiali                                                               create
     +   │  ├─ kubernetes:apps:Deployment                                              istio-system/istio-ingressgateway                                                create
     +   │  ├─ kubernetes:apps:Deployment                                              istio-system/istiod                                                              create
     +   │  ├─ kubernetes:apps:Deployment                                              istio-system/istio-egressgateway                                                 create
     +   │  ├─ kubernetes:apps:Deployment                                              istio-system/istio-ingressgateway                                                create
    But when I choose yes, It dont schedule the creating of these deployments, and then the services that consume these deployments fails, because they never find these pods.
  • c

    clever-crowd-18899

    04/30/2020, 2:25 PM
    Its better to create an issue in github ?
  • c

    clever-crowd-18899

    04/30/2020, 2:27 PM
    here is the full history:
  • c

    clever-crowd-18899

    04/30/2020, 2:27 PM
    Sem título
  • c

    clever-crowd-18899

    04/30/2020, 2:31 PM
    First it says that is going to create 149 resources, and then i when i choose yes it only try to create 125
    b
    • 2
    • 5
  • c

    chilly-hairdresser-56259

    04/30/2020, 2:53 PM
    Question: For lambda with source_code_hash, we should not be calculating the hash as it gets over-riden by Pulumi, correct? It seems to be that way because everytime I calculate the hash that hash in the preview is different causing an update. A couple workarounds I thought of was storing the Hash as a tag and pulling the lambda_functions tags and evaluating from there.
  • w

    white-motorcycle-86077

    04/30/2020, 6:01 PM
    Question: I am getting a timeout error on updating cloudformation/stack. I am not finding the resource in AWS console to find out why pulumi is getting a timeout: My URN:
    updating urn:<stack name>::awsx:x:autoscaling:AutoScalingGroup$aws:cloudformation/stack:Stack::<resource name>: timeout while waiting for state to become 'CREATE_COMPLETE, UPDATE_COMPLETE, UPDATE_ROLLBACK_COMPLETE, UPDATE_ROLLBACK_FAILED' (last state: 'UPDATE_IN_PROGRESS', timeout: 20m0s)
    I attempted to put
    { customTimeouts: { create: "45m", update: "45m" } }
    in:
    awsx.autoscaling.AutoScalingGroup
    awsx.autoscaling.AutoScalingLaunchConfiguration
    The timeout didn't help. Any idea what I missing?
    c
    • 2
    • 5
  • b

    big-potato-91793

    04/30/2020, 10:35 PM
    Any docs for the transformations that can done on eqch resources like in the webinar?
    f
    b
    • 3
    • 3
  • h

    helpful-processor-86468

    05/01/2020, 7:23 AM
    message has been deleted
  • a

    agreeable-angle-1483

    05/01/2020, 10:32 AM
    hi guys, I’m trying to iterate over an object in pulumi by loading it with
    require_object
    but its not working as I’m expected. this is the object:
    endemic:backend_services:
        service_a: 
          protocol: HTTP
          timeout: 30
          port: 80
          instance_group: lala
          health_check: lala-hc
        service_b: 
          protocol: HTTPS
          timeout: 30
          port: 443
          instance_group: kuku
          health_check: kuku-hc
    and this is how I’m trying to load it
    config_obj = pulumi.Config('endemic')
    backend_services = config_obj.require('backend_services')
    when I’m printing it its showing me only the names
    for service in backend_services:
        print(service)
    service_a
    service_b
    how do I access to the inside parameters? and if it’s possible I’d rather prefer to use the
    pulumi config
    variables load inside, i.e:
    service_protocol = config_obj.require('service_a:protocol')
    let me know if you have other suggestion for the variables structure thanks a lot
    b
    • 2
    • 2
  • b

    big-potato-91793

    05/01/2020, 12:55 PM
    We are starting to used the pulumi kafka provider for ts/js. We got an error that was the field wasn’t a number but that seems to pass linting and everything except the preview command that panic. I don’t know but will be interesting that the preview throw an error that the field has not the good type instead. Will add the error in the thread.
    b
    • 2
    • 6
  • b

    brainy-vegetable-77467

    05/01/2020, 1:34 PM
    Hello... just arrived at Pulumi... I need help with the following: I create a droplet on DigitalOcean that returns an ip address... then, I want to use that master_ip_priv in another user-data when creating another droplet... How do I read the token variable master_ip_priv ? in the example it is empty... the code:
    b
    • 2
    • 2
  • b

    brainy-vegetable-77467

    05/01/2020, 1:34 PM
    const master = new digitalocean.Droplet(`k3s-master`, {
    	image: "ubuntu-18-04-x64",
    	region: region,
    	privateNetworking: true,    
    	size: digitalocean.DropletSlugs.DropletS1VCPU1GB,
    	userData: userDataMaster,
    });
    
    export const master_ip_priv = master.ipv4AddressPrivate;
    
    const userDataWorker = `#!/bin/bash  
       echo IPAddressMaster: $master_ip_priv > ip-master.txt   
       `;
    
    const worker = new digitalocean.Droplet(`k3s-worker-1`, {
      image: "ubuntu-18-04-x64",
      region: region,
      privateNetworking: true,    
      size: digitalocean.DropletSlugs.Droplet512mb,
      userData: userDataWorker,
    });
  • b

    brainy-vegetable-77467

    05/01/2020, 2:44 PM
    for example:
  • b

    brainy-vegetable-77467

    05/01/2020, 2:44 PM
    const userDataWorker = `
    #!/bin/bash
    echo ${(master_ip_priv.apply( master_ip_priv => master_ip_priv.toString() ))} > ipmaster.txt | sh -
    `;
  • b

    brainy-vegetable-77467

    05/01/2020, 2:45 PM
    #!/bin/bash
        echo Calling [toString] on an [Output<T>] is not supported.
        To get the value of an Output<T> as an Output<string> consider either:
        1: o.apply(v => `prefix${v}suffix`)
    f
    • 2
    • 1
  • f

    famous-kite-69533

    05/01/2020, 3:08 PM
    Does anyone else find that Pulumi is incredibly slow? I am using just the Kubernetes integration with the latest version to manage just a few deployments. It takes ages just to do the preview and then another long time to apply the changes... I am using a stack with some config if that matters.
    w
    g
    • 3
    • 5
  • l

    lemon-tailor-72006

    05/01/2020, 3:24 PM
    how to javascript kubernetes pulumi app
  • l

    lemon-tailor-72006

    05/01/2020, 3:54 PM
    hi
  • l

    lemon-tailor-72006

    05/01/2020, 3:55 PM
    I have PulumiPolicy.yaml but the pulumi pre-view expects Pulumi.yaml
    g
    • 2
    • 1
  • g

    gray-yak-9058

    05/01/2020, 7:30 PM
    I am trying to build a provider for opsgenie using the https://github.com/pulumi/pulumi-tf-provider-boilerplate, but I keep getting this error
    make
    scripts/get-py-version.go:7:2: cannot find module providing package <http://github.com/pulumi/pulumi/sdk/v2/go/common/util/buildutil|github.com/pulumi/pulumi/sdk/v2/go/common/util/buildutil>: working directory is not part of a module
    ================
    opsgenie Package
    ================
    BUILD:
    cd provider && go install -ldflags "-X <http://github.com/pulumi/pulumi-opsgenie/provider/pkg/version.Version=v0.0.1-alpha.1588074230+gca4ea26.dirty|github.com/pulumi/pulumi-opsgenie/provider/pkg/version.Version=v0.0.1-alpha.1588074230+gca4ea26.dirty>" <http://github.com/pulumi/pulumi-opsgenie/provider/cmd/pulumi-tfgen-opsgenie|github.com/pulumi/pulumi-opsgenie/provider/cmd/pulumi-tfgen-opsgenie>
    pulumi-tfgen-opsgenie schema --out ./provider/cmd/pulumi-resource-opsgenie
    /bin/bash: pulumi-tfgen-opsgenie: command not found
    make: *** [generate_schema] Error 127
    Any idea on what I might be doing wrong?
    l
    b
    b
    • 4
    • 37
  • c

    cool-egg-852

    05/01/2020, 7:48 PM
    Is there no way to import based on output? For example, I need to concat a team id with a username to import members for github. I’d have to get the data as a raw string somehow because
    import
    doesn’t accept
    Output<string>
  • i

    important-football-63662

    05/02/2020, 10:07 PM
    Hello. If I create a VM and its associated disk and network resources with Pulumi, then manually delete the VM outside of Pulumi, shouldn't the VM get created on the next pulumi up (but not the associated resources)? I'm seeing it take no action.
    c
    • 2
    • 4
  • i

    important-football-63662

    05/02/2020, 10:53 PM
    Is it possible to put a timeout on a step? I have a dynamic provisioning step running a script on the VM and certain errors appear to make
    pulumi up
    hang indefinitely. I have to ctrl+c twice, export state, delete pending ops, re-import state, re-run each time
    c
    • 2
    • 3
Powered by Linen
Title
i

important-football-63662

05/02/2020, 10:53 PM
Is it possible to put a timeout on a step? I have a dynamic provisioning step running a script on the VM and certain errors appear to make
pulumi up
hang indefinitely. I have to ctrl+c twice, export state, delete pending ops, re-import state, re-run each time
c

colossal-room-15708

05/03/2020, 3:59 AM
Yep, https://www.pulumi.com/docs/intro/concepts/programming-model/#customtimeouts
i

important-football-63662

05/03/2020, 1:46 PM
This is a dynamic provisioning script though not a standard cloud resource. That works there too somehow?
I guess I can set it at the VM level to have almost the same effect. Thanks
View count: 1