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

    cool-egg-852

    04/02/2020, 3:00 PM
    For webhooks, do they only contain a url to the update or is there any details on the update itself?
    g
    • 2
    • 3
  • g

    gray-tailor-20387

    04/02/2020, 3:33 PM
    I tried
    pulumi stack import --file dev.checkpoint.json
    It's a checkpoint file i edited I got following error after wanting to pulumi preview: error: .pulumi/stacks/dev.json: snapshot integrity failure; refusing to use it: resource urn😛ulumi:dev:🇱🇸:digitalocean:index/kubernetesCluster:KubernetesCluster::staging refers to unknown provider urn😛ulumi:dev:🇱🇸😛ulumi:providers:digitalocean::default_1_6_0::*charactersequence* I am positive i did not change "provider" and that cluster is still running on DO cloud. Does anyone have an idea what I might've done wrong or how i can fix this?
  • f

    flat-river-10700

    04/02/2020, 4:58 PM
    Pluralsight has made all of our 7,000+ expert-led video courses FREE for the full month of April. #FreeApril #StayHomeSkillUp https://pluralsight.pxf.io/5JB59
  • b

    brave-angle-33257

    04/02/2020, 5:54 PM
    can anyone help why this isnt working:
    var bucket_name = <pulumi.Output<string>>s3.getOutput(`bucket_backup`);
    var instance = new aws.ec2.Instance('instance', {
       ...
         userData: `
        #! /bin/bash
        # create template for deployment
        cat > vpnbackup.sed <<SED
        s|--BUCKET-NAME--|${bucket_name.apply(v=>v)}|
        ...
    "Calling [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:\n1: o.apply(v =>
    prefix${v}suffix
    )\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee https://pulumi.io/help/outputs for more details."
    😎 1
    c
    • 2
    • 15
  • g

    green-morning-1318

    04/02/2020, 6:35 PM
    success story… it took me about 5 mins to update my infrastructure with some new code… just
    pulumi up --yes
    and I can have a coffee while I know the rest is successfully updating ☺️
    🎉 6
  • s

    salmon-account-74572

    04/02/2020, 8:16 PM
    Nice!
  • b

    brave-angle-33257

    04/02/2020, 8:49 PM
    FYI - when github has issues,
    pulumi new
    doesnt work:
    devops@289876f91c69:/data/pulumi/infra/aws/ec2-jenkins-server$ pulumi new
    error: unexpected client error: unexpected requesting "<https://github.com/pulumi/templates.git/info/refs?service=git-upload-pack>" status code: 504
    https://www.githubstatus.com/
    m
    • 2
    • 2
  • e

    early-intern-90238

    04/02/2020, 11:47 PM
    Anyone setup a Pulumi stack using Vagrant?
    s
    e
    • 3
    • 40
  • w

    white-airport-48392

    04/03/2020, 3:06 AM
    Hello, So I was looking at https://www.pulumi.com/blog/creating-and-reusing-cloud-components-using-package-managers/ Is there a python example for reusable infra components
    g
    • 2
    • 2
  • a

    adorable-action-51248

    04/03/2020, 9:20 AM
    Hoi ! I was wondering how you guys iterate over naming conventions in a pulumi stack ? Say you have you have function
    genId
    prefixing all your ids with the environment. i.e.
    prod-<id>
    but then later you change your mind and you want to use
    <id>-prod
    instead and change
    genId
    i know there are aliases, however, these are not really helpful when you use a function
    genId
    to generate these ids. For this change you would need to go through all the code and add an
    aliases
    section, and add the results of the old version of
    genId
    . Is there a better way ? Right now the quickest solution i found without using aliases is to call
    pulumi destroy
    . Thankfully i don’t care about uptime at the moment.
    f
    • 2
    • 1
  • g

    gray-lawyer-89054

    04/03/2020, 12:41 PM
    Hi, I found quite big flaw in
    pulumi config set
    command (for v1.14.0) when i tried to set value for structured configuration. When I run:
    pulumi config set --path key.prop "1002000"
    Result is
    proj:key:
        prop: 1.002e+06
    but for:
    pulumi config set --path key.prop "100200"
    proj:key:
        prop: 100200
    Some one encountered this issue? Independently from this bug it would be nice to force save as text because it impacts program flow.
    g
    m
    • 3
    • 5
  • a

    abundant-airplane-93796

    04/03/2020, 1:55 PM
    has anyone had any luck setting up the Pulumi GitHub App lately? I can't seem to get it to comment on a PR at all. I've been experimenting with both Google Cloud Build and GitHub actions to run
    pulumi preview
    and/or
    pulumi up
    as per the tutorials, and I've enabled the app for all repos in my organization, but it refuses to fire at all. Are there some undocumented naming convention rules about org/project/stack/repo naming that I'm missing?
    e
    s
    • 3
    • 3
  • b

    busy-umbrella-36067

    04/03/2020, 5:37 PM
    For those that use pulumi to create ephemeral environments, how are you handling stack cleanup? I can handle resource cleanup in k8s with a CronJob but the stacks are still left over with their state intact. Once a branch is merged and deleted, CI doesn’t really do anything at that point.
    👍 1
    g
    b
    m
    • 4
    • 10
  • m

    millions-judge-24978

    04/03/2020, 6:06 PM
    Is there a way to use the static
    get()
    methods without providing an ID? I’d like to be able to
    aws.alb.LoadBalancer.get('lb', undefined, <filters>)
    to be able to lookup a load balancer having certain tags for example.
    b
    • 2
    • 2
  • b

    brief-spoon-92183

    04/03/2020, 6:07 PM
    Hello everyone! Just finished reading the docs; got a quick question: is it possible to execute
    pulumi up
    and other actions programmatically from Nodejs (without spawning a new process)? Would love to do that and access outputs for post-processing.
    a
    • 2
    • 2
  • b

    brief-spoon-92183

    04/03/2020, 6:08 PM
    Or is the CLI the only way to go?
  • b

    big-potato-91793

    04/03/2020, 6:25 PM
    Hey 👋 , I’m trying to contruct a config Record to pass to mustach to do the rendering of my config file.
    const configVariables: Record<string, string> = {
        username: config.databaseUsername,
        password: config.databasePassword,
        connectionString: config.databaseConnectionString,
        bucketname: config.bucketname,
        bucketPrefix: `${config.appName}/${config.environment}`,
        bucketRegion: config.region,
    };
    config.databaseUsername
    is a secret. When I take a look at my secret in k8s the value is more something like
    "user": "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 &#x3D;> &#x60;prefix${v}suffix&#x60;)
    2: pulumi.interpolate &#x60;prefix${v}suffix&#x60;
    What should I do? thx
    w
    • 2
    • 2
  • s

    stale-knife-36790

    04/06/2020, 8:52 AM
    Can Pulumi deploy multiple folders/files /layers to GCP? (Google cloud platform, Cloud functions)? 🤔 (For some reason it only wants to deploy 'index.js' and now it doesn't recognize my (exported) functions which are in another file. (I use node.js)
    l
    • 2
    • 10
  • r

    rough-tomato-98795

    04/06/2020, 1:04 PM
    Any tips on how to implement waiting logic for ther resources which will be created by operator inside aks cluster based on cr deployed by pulumi code.?
  • i

    incalculable-engineer-92975

    04/06/2020, 1:29 PM
    @here I'm hoping to work around a Terraform bug by applying changes a second time. How do I get Pulumi to do that? Specifically, I need to re-apply API Gateway changes because a Terraform bug causes them to be cleared out when they are first applied. IOW, I want to force Pulumi to re-apply changes after the objects are created.
    b
    • 2
    • 4
  • g

    gray-tailor-20387

    04/06/2020, 2:12 PM
    Hey everyone. How would you guys go about effeciëntly moving away from local stacks to shared stack(s) saved on a cloud provider? It's meant for only around 3 people.
  • c

    cool-egg-852

    04/06/2020, 5:34 PM
    How do you ignoreChanges using a helm chart?
    g
    • 2
    • 5
  • f

    fast-whale-9064

    04/06/2020, 5:51 PM
    Any suggestions for understanding why pulumi wants to
    replace
    some instances? In AWS, got a cluster of machines stood up over a year ago, on Pulumi 0.16.8 I think. Now on Pulumi 1.14 and it wants to replace all the instances.
    b
    f
    • 3
    • 21
  • i

    incalculable-engineer-92975

    04/06/2020, 6:01 PM
    @here Great new blog post from Pulumi. One comment, it's missing the code for the isTaggable function. Can you post that? https://www.pulumi.com/blog/automatically-enforcing-aws-resource-tagging-policies/
    g
    • 2
    • 2
  • o

    orange-boots-47327

    04/06/2020, 6:27 PM
    Hello everyone, I’m thinking of introducing Pulumi to our company, however I still don’t understand one major thing—how do you develop your application locally?
    r
    • 2
    • 8
  • f

    fast-dinner-32080

    04/06/2020, 6:41 PM
    I have a stack in dotnet that is using components. The component depends on a resource which I then put that dependson in the components options. When I run up and it gives me a preview of the resources which the storage class is always at the bottom which makes since, since it depends on something up the graph. Unfortunately when I apply it the resource it created way at the beginning and fails since the demandant resource hasn't been created yet. Is there an issue with a component resource depending on another resource? It almost seems it is ignoring it. Preview
    Type                                                        Name                                      Plan       
         pulumi:pulumi:Stack                                         k8s-courageous-cluster-asc-dev-k8s-c02               
     +   ├─ rancher2:index:NodePool                                  workerNodePool1:asc-dev-k8s-c02-w1        create     
     +   ├─ rancher2:index:NodePool                                  workerNodePool3:asc-dev-k8s-c02-w3        create     
     +   ├─ rancher2:index:NodePool                                  masterNodePool:asc-dev-k8s-c02-m          create     
     +   ├─ rancher2:index:NodePool                                  workerNodePool2:asc-dev-k8s-c02-w2        create     
     +   ├─ rancher2:index:ClusterSync                               rancherClusterSync                        create     
     +   ├─ ascendlearning:rancher:SystemAddOnProject                systemAddOnsProject                       create     
     +   ├─ rancher2:index:Project                                   systemAddOnsProject:systemAddOnsProject   create     
     +   ├─ rancher2:index:Namespace                                 systemAddOnsProject:systemAddOnNamespace  create     
     +   ├─ kubernetes:core:ServiceAccount                           descheduler:ServiceAccount                create     
     +   ├─ kubernetes:<http://rbac.authorization.k8s.io:ClusterRole|rbac.authorization.k8s.io:ClusterRole>         descheduler:ClusterRole                   create     
     +   ├─ kubernetes:<http://rbac.authorization.k8s.io:ClusterRoleBinding|rbac.authorization.k8s.io:ClusterRoleBinding>  descheduler:ClusterRoleBinding            create     
     +   ├─ kubernetes:core:ConfigMap                                descheduler:ConfigMap                     create     
     +   ├─ kubernetes:batch:CronJob                                 descheduler:CronJob                       create     
     +   └─ kubernetes:<http://storage.k8s.io:StorageClass|storage.k8s.io:StorageClass>                   storageClass:vsphereStorageClass          create
    Apply
    Type                                       Name                                    Status                  Info
         pulumi:pulumi:Stack                        k8s-courageous-cluster-asc-dev-k8s-c02  **failed**              1 error
     +   ├─ rancher2:index:NodePool                 workerNodePool2:asc-dev-k8s-c02-w2      created                 
     +   ├─ rancher2:index:NodePool                 workerNodePool1:asc-dev-k8s-c02-w1      created                 
     +   ├─ rancher2:index:NodePool                 masterNodePool:asc-dev-k8s-c02-m        created                 
     +   ├─ rancher2:index:NodePool                 workerNodePool3:asc-dev-k8s-c02-w3      created                 
     +   └─ kubernetes:<http://storage.k8s.io:StorageClass|storage.k8s.io:StorageClass>  storageClass:vsphereStorageClass        **creating failed**     1 error
    You can see the storage class is created before it shows it would in the preview.
    g
    t
    s
    • 4
    • 18
  • m

    microscopic-application-33470

    04/07/2020, 1:10 AM
    Hi everyone -- quick question: I'm using my own S3 bucket as a backend for Pulumi states. Now, I want to have multiple projects that have same stack names, for example
    project1 dev, project2 dev, project3 dev, etc.
    , however once I'm logged in my S3 bucket I can only have unique stack names, which is fine, but then in each of the projects my stacks will need to be named
    project1-dev
    ,
    project2-dev
    , etc. Is there a way to have same stack names across multiple projects?
    • 1
    • 1
  • a

    acceptable-stone-35112

    04/07/2020, 8:45 AM
    Hi, I suggest to open a separate channel for CI/CD pipelines related issues (Circle, GitHub Actions, AzureDevops, CodeDeploy, etc...)
    👍 4
  • a

    adorable-musician-66353

    04/07/2020, 12:24 PM
    When I 'pulumi up' my Pulumi ts project I got the following warning:
    warning: resource plugin azure is expected to have version >=2.3.1, but has ; the wrong version may be on your path, or this may be a bug in the plugin
    What to do to fix this?
    c
    b
    b
    • 4
    • 8
  • a

    adorable-musician-66353

    04/07/2020, 1:15 PM
    Anyone any example on using an Azure Blob Storage -> EventGrid (BlobCreated) -> Azure function?
Powered by Linen
Title
a

adorable-musician-66353

04/07/2020, 1:15 PM
Anyone any example on using an Azure Blob Storage -> EventGrid (BlobCreated) -> Azure function?
View count: 1